{
  "nbformat": 4,
  "nbformat_minor": 0,
  "metadata": {
    "kernelspec": {
      "display_name": "Python 3",
      "language": "python",
      "name": "python3"
    },
    "language_info": {
      "codemirror_mode": {
        "name": "ipython",
        "version": 3
      },
      "file_extension": ".py",
      "mimetype": "text/x-python",
      "name": "python",
      "nbconvert_exporter": "python",
      "pygments_lexer": "ipython3",
      "version": "3.8.2"
    },
    "colab": {
      "name": "UniDet_learn_labelspace_mAP.ipynb",
      "provenance": [],
      "collapsed_sections": []
    },
    "accelerator": "GPU"
  },
  "cells": [
    {
      "cell_type": "code",
      "metadata": {
        "id": "1pvxg1i7weDF",
        "colab": {
          "base_uri": "https://localhost:8080/"
        },
        "outputId": "9a5a3ae7-0b5f-4b32-e1cf-f63ab053517f"
      },
      "source": [
        "# Automatically find unified label space from co-occurance of detector results.\n",
        "\n",
        "import json\n",
        "import torch\n",
        "import numpy as np\n",
        "import sys\n",
        "from collections import defaultdict\n",
        "from pycocotools import mask as maskutils\n",
        "import numba\n",
        "import time\n",
        "%pylab inline"
      ],
      "execution_count": 1,
      "outputs": [
        {
          "output_type": "stream",
          "text": [
            "Populating the interactive namespace from numpy and matplotlib\n"
          ],
          "name": "stdout"
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "6--wA9wyxUc2"
      },
      "source": [
        "# datapath \n",
        "ROOT_PATH = 'datasets/'\n",
        "\n",
        "sys.path.insert(0, ROOT_PATH)\n",
        "meta_data_path = ROOT_PATH + 'metadata/det_categories.json' # category info from annotation json\n",
        "ANN_PATH = {\n",
        "    'objects365': ROOT_PATH + 'objects365/annotations/objects365_val.json',\n",
        "    'coco': ROOT_PATH + 'coco/annotations/instances_val2017.json',\n",
        "    'oid': ROOT_PATH + 'oid/annotations/oid_challenge_2019_val_expanded.json'\n",
        "}\n",
        "\n",
        "EXP_NAME = 'Partitioned_COI_RS101_2x'\n",
        "DATA_PATH = {\n",
        "    'objects365': ROOT_PATH + 'logits/{}/inference_objects365_val/unified_instances_results.json'.format(EXP_NAME),\n",
        "    'coco': ROOT_PATH + 'logits/{}/inference_coco_2017_val/unified_instances_results.json'.format(EXP_NAME),\n",
        "    'oid': ROOT_PATH + 'logits/{}/inference_oid_val_expanded/unified_instances_results.json'.format(EXP_NAME),\n",
        "}\n",
        "datasets = ['objects365', 'coco', 'oid']"
      ],
      "execution_count": 2,
      "outputs": []
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "yFUA7K5USoOt",
        "colab": {
          "base_uri": "https://localhost:8080/"
        },
        "outputId": "a79a4d1a-d719-412c-91ce-7e9506accacc"
      },
      "source": [
        "# load meta data\n",
        "categories = json.load(open(meta_data_path, 'r'))\n",
        "predid2name, id2sourceid, id2sourceindex, id2sourcename = [], [], [], []\n",
        "names = []\n",
        "for d in datasets:\n",
        "    predid2name.extend([d + '_' + x['name'] for x in sorted(\n",
        "        categories[d], key=lambda x:x['id'])])\n",
        "    id2sourceid.extend([x['id'] for x in sorted(\n",
        "        categories[d], key=lambda x:x['id'])])\n",
        "    id2sourceindex.extend([i for i, _ in enumerate(sorted(\n",
        "        categories[d], key=lambda x:x['id']))])\n",
        "    id2sourcename.extend([d for _ in range(len(categories[d]))])\n",
        "    names.extend([d + '_' + x['name'] for x in sorted(\n",
        "        categories[d], key=lambda x:x['id'])])\n",
        "    print('len(categories[d])', d, len(categories[d]))"
      ],
      "execution_count": 3,
      "outputs": [
        {
          "output_type": "stream",
          "text": [
            "len(categories[d]) objects365 365\n",
            "len(categories[d]) coco 80\n",
            "len(categories[d]) oid 500\n"
          ],
          "name": "stdout"
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "jId1qqlQwPYi",
        "colab": {
          "base_uri": "https://localhost:8080/"
        },
        "outputId": "b1182340-6f61-44a5-ca9c-0683f90642a7"
      },
      "source": [
        "# function to load detection results\n",
        "def create_index(boxes, is_gt=False, score_thresh=-1, cats=None):\n",
        "    '''\n",
        "    inputs:\n",
        "      boxes: list of dicts in coco format {'image_id', 'category_id', 'bbox', 'scores'}\n",
        "    returns:\n",
        "      dict of (dict of (list of dict)): per category predictions\n",
        "    '''\n",
        "    if cats is not None:\n",
        "        ret = {x: defaultdict(list) for x in cats}\n",
        "    else:\n",
        "        ret = {}\n",
        "    for x in boxes:\n",
        "        if x['category_id'] not in ret:\n",
        "            ret[x['category_id']] = defaultdict(list)\n",
        "        if is_gt:\n",
        "            ret[x['category_id']][x['image_id']].append(\n",
        "                {'bbox': x['bbox'], 'iscrowd': x['iscrowd']})\n",
        "        else:\n",
        "            if x['score'] > score_thresh:\n",
        "                ret[x['category_id']][x['image_id']].append(\n",
        "                    {'bbox': x['bbox'], 'score': x['score']})\n",
        "    for cat in ret:\n",
        "        for image_id in ret[cat]:\n",
        "            if not is_gt:\n",
        "                ret[cat][image_id] = sorted(ret[cat][image_id], key=lambda x: - x['score'])\n",
        "                scores = [x['score'] for x in ret[cat][image_id]]\n",
        "                bboxes = [x['bbox'] for x in ret[cat][image_id]]\n",
        "                ret[cat][image_id] = {'scores': scores, 'bboxes': bboxes}\n",
        "            else:\n",
        "                ret[cat][image_id] = sorted(ret[cat][image_id], key=lambda x: x['iscrowd'])\n",
        "                iscrowd = [x['iscrowd'] for x in ret[cat][image_id]]\n",
        "                bboxes = [x['bbox'] for x in ret[cat][image_id]]\n",
        "                ret[cat][image_id] = {'iscrowd': iscrowd, 'bboxes': bboxes}\n",
        "    return ret\n",
        "\n",
        "# load detection annotations and predictions\n",
        "all_anns, all_preds, gtid2name = {}, {}, {}\n",
        "for d in datasets:\n",
        "  print('Loading anns...', ANN_PATH[d])\n",
        "  anns = json.load(open(ANN_PATH[d], 'r'))\n",
        "  print('Loading preds...', DATA_PATH[d])\n",
        "  preds = json.load(open(DATA_PATH[d], 'r'))\n",
        "  all_anns[d] = create_index(anns['annotations'], True, \n",
        "                             cats=[x['id'] for x in anns['categories']])\n",
        "  all_preds[d] = create_index(preds, score_thresh=0.1)\n",
        "  gtid2name[d] = {x['id']: x['name'] for x in anns['categories']}\n",
        "  del anns\n",
        "  del preds"
      ],
      "execution_count": 4,
      "outputs": [
        {
          "output_type": "stream",
          "text": [
            "Loading anns... datasets/objects365/annotations/objects365_val.json\n",
            "Loading preds... datasets/logits/Partitioned_COI_RS101_2x/inference_objects365_val/unified_instances_results.json\n",
            "Loading anns... datasets/coco/annotations/instances_val2017.json\n",
            "Loading preds... datasets/logits/Partitioned_COI_RS101_2x/inference_coco_2017_val/unified_instances_results.json\n",
            "Loading anns... datasets/oid/annotations/oid_challenge_2019_val_expanded.json\n",
            "Loading preds... datasets/logits/Partitioned_COI_RS101_2x/inference_oid_val_expanded/unified_instances_results.json\n"
          ],
          "name": "stdout"
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "n9QPYkB_fFP5"
      },
      "source": [
        "@numba.jit(nopython=True, nogil=True)\n",
        "def find_match(ious, iscrowd, n, m):\n",
        "    matched = [0 for _ in range(m)] # m\n",
        "    dtig = [0 for _ in range(n)] # n\n",
        "    dtm = [0 for _ in range(n)] # n\n",
        "    for dind in range(n):\n",
        "        iou = 0.5\n",
        "        mt = -1\n",
        "        for gind in range(m):\n",
        "            if matched[gind] > 0 and iscrowd[gind] == 0:\n",
        "                continue\n",
        "            if mt > -1 and iscrowd[mt] == 0 and iscrowd[gind] == 1:\n",
        "                break\n",
        "            if ious[dind, gind] < iou:\n",
        "                continue\n",
        "            iou = ious[dind, gind]\n",
        "            mt = gind\n",
        "        if mt == -1:\n",
        "            continue\n",
        "        dtig[dind] = iscrowd[mt]\n",
        "        dtm[dind] = 1\n",
        "        matched[mt] = 1\n",
        "    return matched, dtig, dtm\n",
        "\n",
        "# COCO mAP\n",
        "def numba_mAP(preds, gts):\n",
        "    '''\n",
        "    inputs: \n",
        "      preds: dict of (list of dict): prediction list indexed by image id (one category)\n",
        "      gts: dict of (list of dict): prediction list indexed by image id (one category)\n",
        "    '''\n",
        "    image_ids = gts.keys()\n",
        "    all_scores, all_dtm, all_dtig, all_gtig = [], [], [], []\n",
        "    cur_gt, cur_match = 0, 0\n",
        "    for idx, image_id in enumerate(image_ids):\n",
        "        # pruning for efficiency\n",
        "        if cur_gt > 100 and cur_match < 10:\n",
        "            return 0\n",
        "        if image_id in preds and ('scores' in preds[image_id]):\n",
        "            scores = preds[image_id]['scores']\n",
        "            dt = preds[image_id]['bboxes']\n",
        "        else:\n",
        "            scores = []\n",
        "            dt = []\n",
        "        if 'iscrowd' in gts[image_id]:\n",
        "            gt = gts[image_id]['bboxes']\n",
        "            iscrowd = gts[image_id]['iscrowd']\n",
        "        else:\n",
        "            gt = []\n",
        "            iscrowd = []\n",
        "        n, m = len(dt), len(gt)\n",
        "        ious = maskutils.iou(dt, gt, iscrowd) # n x m\n",
        "        if n > 0 and m > 0:\n",
        "            matched, dtig, dtm = find_match(ious, iscrowd, n, m)\n",
        "        else:\n",
        "            matched = [0 for _ in range(m)] # m\n",
        "            dtig = [0 for _ in range(n)] # n\n",
        "            dtm = [0 for _ in range(n)] # n\n",
        "        cur_gt = cur_gt + len(gt)\n",
        "        cur_match = cur_match + sum(matched)\n",
        "        all_scores.extend(scores)\n",
        "        all_dtm.extend(dtm)\n",
        "        all_dtig.extend(dtig)\n",
        "        all_gtig.extend(iscrowd)\n",
        "    all_scores = np.array(all_scores, dtype=np.float32)\n",
        "    all_dtm = np.array(all_dtm, dtype=np.int32)\n",
        "    all_dtig = np.array(all_dtig, dtype=np.int32)\n",
        "    inds = np.argsort(-all_scores, kind='mergesort')\n",
        "    all_scores = all_scores[inds]\n",
        "    all_dtm = all_dtm[inds]\n",
        "    all_dtig = all_dtig[inds]\n",
        "    N = len(all_scores)\n",
        "    tps = (all_dtm == 1) & (all_dtig == 0) # N\n",
        "    fps = (all_dtm == 0) & (all_dtig == 0) # N\n",
        "    nvalid = np.count_nonzero(np.array(all_gtig, dtype=np.int32)==0)\n",
        "    if nvalid == 0:\n",
        "        return 0\n",
        "    tp_sum = np.cumsum(tps).astype(dtype=np.float32) # N\n",
        "    fp_sum = np.cumsum(fps).astype(dtype=np.float32) # N\n",
        "    rc = tp_sum / nvalid\n",
        "    pr = (tp_sum / (fp_sum + tp_sum + 1e-8)).tolist()\n",
        "    for i in range(N-1, 0, -1):\n",
        "        if pr[i] > pr[i - 1]:\n",
        "            pr[i - 1] = pr[i]\n",
        "    recThrs = np.linspace(.0, 1.00, int(np.round((1.00 - .0) / .01)) + 1, endpoint=True)\n",
        "    inds = np.searchsorted(rc, recThrs, side='left')\n",
        "    q = np.zeros(len(recThrs))\n",
        "    try:\n",
        "        for ri, pi in enumerate(inds):\n",
        "            q[ri] = pr[pi]\n",
        "    except:\n",
        "        pass\n",
        "    return q.mean()"
      ],
      "execution_count": 5,
      "outputs": []
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "YvznMH_FRerI",
        "colab": {
          "base_uri": "https://localhost:8080/"
        },
        "outputId": "f7e0d21e-68ff-4be3-b780-7e6468a9deee"
      },
      "source": [
        "# Pre-calulate mAP for all class pairs\n",
        "mAPs_all = {}\n",
        "mAPs_ori = {}\n",
        "for d in datasets:\n",
        "    print('d', d)\n",
        "    mAPs_all[d] = np.zeros((len(all_preds[d]), len(all_anns[d])), dtype=np.float32)\n",
        "    mAPs_ori[d] = np.zeros(len(all_anns[d]), dtype=np.float32)\n",
        "    time_st = time.time()\n",
        "    for j, gt_cat in enumerate(sorted(all_anns[d].keys())):\n",
        "        for i in sorted(all_preds[d].keys()):\n",
        "            pred_name = predid2name[i]\n",
        "            if pred_name.startswith(d):\n",
        "                continue\n",
        "            mAPs_all[d][i, j] = numba_mAP(all_preds[d][i], all_anns[d][gt_cat])\n",
        "        inds = np.argsort(-mAPs_all[d][:, j])\n",
        "        i_ori = [i for i in all_preds[d].keys() if predid2name[i] == '{}_{}'.format(d, gtid2name[d][gt_cat])]\n",
        "        i_ori = i_ori[0]\n",
        "        ori_map = numba_mAP(all_preds[d][i_ori], all_anns[d][gt_cat])\n",
        "        mAPs_all[d][i_ori, j] = ori_map\n",
        "        mAPs_ori[d][j] = ori_map\n",
        "        print('{} {:.3f}'.format(gtid2name[d][gt_cat], ori_map), end=',')\n",
        "        for k in range(5):\n",
        "            if mAPs_all[d][inds[k], j] > 0.01:\n",
        "                print('{} {:.3f}'.format(predid2name[inds[k]], mAPs_all[d][inds[k], j]), end=', ')\n",
        "        print()\n",
        "    print('time =', time.time() - time_st)"
      ],
      "execution_count": 6,
      "outputs": [
        {
          "output_type": "stream",
          "text": [
            "d objects365\n"
          ],
          "name": "stdout"
        },
        {
          "output_type": "stream",
          "text": [
            "C:\\Users\\zhoux\\anaconda3\\lib\\site-packages\\numba\\ir_utils.py:2041: NumbaPendingDeprecationWarning: \u001b[1m\n",
            "Encountered the use of a type that is scheduled for deprecation: type 'reflected list' found for argument 'iscrowd' of function 'find_match'.\n",
            "\n",
            "For more information visit http://numba.pydata.org/numba-doc/latest/reference/deprecation.html#deprecation-of-reflection-for-list-and-set-types\n",
            "\u001b[1m\n",
            "File \"<ipython-input-5-41f725592760>\", line 2:\u001b[0m\n",
            "\u001b[1m@numba.jit(nopython=True, nogil=True)\n",
            "\u001b[1mdef find_match(ious, iscrowd, n, m):\n",
            "\u001b[0m\u001b[1m^\u001b[0m\u001b[0m\n",
            "\u001b[0m\n",
            "  warnings.warn(NumbaPendingDeprecationWarning(msg, loc=loc))\n",
            "C:\\Users\\zhoux\\anaconda3\\lib\\site-packages\\numba\\ir_utils.py:2041: NumbaPendingDeprecationWarning: \u001b[1m\n",
            "Encountered the use of a type that is scheduled for deprecation: type 'reflected list' found for argument 'iscrowd' of function 'find_match'.\n",
            "\n",
            "For more information visit http://numba.pydata.org/numba-doc/latest/reference/deprecation.html#deprecation-of-reflection-for-list-and-set-types\n",
            "\u001b[1m\n",
            "File \"<ipython-input-5-41f725592760>\", line 2:\u001b[0m\n",
            "\u001b[1m@numba.jit(nopython=True, nogil=True)\n",
            "\u001b[1mdef find_match(ious, iscrowd, n, m):\n",
            "\u001b[0m\u001b[1m^\u001b[0m\u001b[0m\n",
            "\u001b[0m\n",
            "  warnings.warn(NumbaPendingDeprecationWarning(msg, loc=loc))\n"
          ],
          "name": "stderr"
        },
        {
          "output_type": "stream",
          "text": [
            "person 0.783,coco_person 0.777, oid_Person 0.767, oid_Man 0.652, oid_Woman 0.342, objects365_person 0.783, \n",
            "sneakers 0.666,oid_Footwear 0.563, \n",
            "chair 0.565,coco_chair 0.580, oid_Chair 0.534, oid_Furniture 0.244, \n",
            "hat 0.704,oid_Hat 0.338, \n",
            "lamp 0.602,oid_Lamp 0.262, \n",
            "bottle 0.489,coco_bottle 0.454, oid_Bottle 0.259, oid_Drink 0.095, oid_Tableware 0.090, \n",
            "cabinet/shelf 0.572,oid_Cabinetry 0.303, oid_Cupboard 0.256, oid_Furniture 0.194, oid_Shelf 0.113, oid_Chest of drawers 0.106, \n",
            "cup 0.539,coco_cup 0.527, oid_Tableware 0.106, oid_Coffee cup 0.091, oid_Drink 0.084, \n",
            "car 0.651,coco_car 0.648, oid_Car 0.517, oid_Land vehicle 0.400, oid_Vehicle 0.387, coco_truck 0.016, \n",
            "glasses 0.630,oid_Glasses 0.291, \n",
            "picture/frame 0.788,oid_Picture frame 0.670, \n",
            "desk 0.506,oid_Table 0.418, coco_dining table 0.298, oid_Furniture 0.206, oid_Desk 0.153, oid_Coffee table 0.118, \n",
            "handbag 0.413,coco_handbag 0.340, oid_Handbag 0.161, oid_Luggage and bags 0.128, coco_backpack 0.047, \n",
            "street lights 0.582,oid_Street light 0.492, \n",
            "book 0.338,coco_book 0.359, oid_Book 0.164, \n",
            "plate 0.594,oid_Plate 0.234, oid_Tableware 0.211, oid_Platter 0.200, coco_bowl 0.087, \n",
            "helmet 0.781,oid_Helmet 0.688, oid_Football helmet 0.297, \n",
            "leather shoes 0.483,oid_Footwear 0.277, \n",
            "pillow 0.679,oid_Pillow 0.572, \n",
            "glove 0.561,oid_Glove 0.248, \n",
            "potted plant 0.634,coco_potted plant 0.606, oid_Houseplant 0.535, oid_Tree 0.050, \n",
            "bracelet 0.474,\n",
            "flower 0.619,oid_Flower 0.475, coco_potted plant 0.244, oid_Houseplant 0.082, \n",
            "tv 0.745,coco_tv 0.734, oid_Computer monitor 0.530, oid_Television 0.436, \n",
            "storage box 0.367,oid_Box 0.225, \n",
            "vase 0.547,coco_vase 0.488, oid_Vase 0.344, oid_Flowerpot 0.201, \n",
            "bench 0.363,coco_bench 0.350, oid_Bench 0.263, oid_Furniture 0.140, coco_chair 0.015, oid_Chair 0.011, \n",
            "wine glass 0.628,coco_wine glass 0.621, oid_Wine glass 0.524, oid_Tableware 0.288, oid_Drink 0.030, coco_cup 0.012, \n",
            "boots 0.528,oid_Footwear 0.258, oid_Boot 0.252, \n",
            "bowl 0.538,coco_bowl 0.539, oid_Bowl 0.371, oid_Tableware 0.147, \n",
            "dining table 0.509,coco_dining table 0.568, oid_Table 0.508, oid_Kitchen & dining room table 0.235, oid_Furniture 0.216, oid_Coffee table 0.141, \n",
            "umbrella 0.623,coco_umbrella 0.601, oid_Umbrella 0.550, \n",
            "boat 0.622,coco_boat 0.577, oid_Watercraft 0.555, oid_Boat 0.554, oid_Vehicle 0.492, oid_Canoe 0.302, \n",
            "flag 0.644,oid_Flag 0.576, \n",
            "speaker 0.617,\n",
            "trash bin/can 0.599,oid_Waste container 0.398, \n",
            "stool 0.521,oid_Stool 0.382, coco_chair 0.145, oid_Furniture 0.121, oid_Chair 0.028, oid_Table 0.016, \n",
            "backpack 0.500,coco_backpack 0.510, oid_Backpack 0.377, oid_Luggage and bags 0.216, coco_handbag 0.016, \n",
            "couch 0.681,oid_Couch 0.634, coco_couch 0.633, oid_studio couch 0.632, oid_Sofa bed 0.627, oid_Loveseat 0.591, \n",
            "belt 0.561,oid_Belt 0.137, \n",
            "carpet 0.656,\n",
            "basket 0.568,oid_Picnic basket 0.343, coco_bowl 0.025, \n",
            "towel/napkin 0.459,oid_Towel 0.224, \n",
            "slippers 0.471,oid_Footwear 0.198, oid_Sandal 0.118, \n",
            "barrel/bucket 0.484,oid_Barrel 0.172, oid_Waste container 0.061, coco_bottle 0.018, \n",
            "coffee table 0.579,oid_Table 0.593, oid_Coffee table 0.547, coco_dining table 0.313, oid_Furniture 0.200, oid_Nightstand 0.074, \n",
            "suv 0.499,oid_Land vehicle 0.294, oid_Car 0.291, oid_Vehicle 0.285, coco_car 0.235, coco_truck 0.158, \n",
            "toy 0.222,oid_Toy 0.176, oid_Doll 0.030, oid_Animal 0.024, coco_teddy bear 0.022, \n",
            "tie 0.593,coco_tie 0.583, oid_Tie 0.427, \n",
            "bed 0.848,oid_Bed 0.848, coco_bed 0.843, oid_Infant bed 0.715, oid_Furniture 0.366, oid_Stretcher 0.106, \n",
            "traffic light 0.638,coco_traffic light 0.636, oid_Traffic light 0.613, \n",
            "pen/pencil 0.337,oid_Pen 0.189, oid_Office supplies 0.043, \n",
            "microphone 0.407,oid_Microphone 0.362, \n",
            "sandals 0.434,oid_Footwear 0.272, oid_Sandal 0.214, \n",
            "canned 0.433,oid_Tin can 0.198, oid_Drink 0.061, coco_bottle 0.054, coco_cup 0.017, \n",
            "necklace 0.487,\n",
            "mirror 0.513,oid_Mirror 0.360, \n",
            "faucet 0.656,oid_Tap 0.599, oid_Plumbing fixture 0.369, \n",
            "bicycle 0.737,coco_bicycle 0.742, oid_Bicycle 0.694, oid_Land vehicle 0.422, oid_Vehicle 0.396, oid_Stationary bicycle 0.151, \n",
            "bread 0.282,oid_Dessert 0.157, coco_sandwich 0.110, oid_Bread 0.107, coco_cake 0.074, oid_Muffin 0.015, \n",
            "high heels 0.345,oid_Footwear 0.315, oid_Sandal 0.272, oid_High heels 0.234, \n",
            "ring 0.314,\n",
            "van 0.470,oid_Van 0.379, oid_Land vehicle 0.217, oid_Car 0.207, oid_Vehicle 0.207, coco_truck 0.201, \n",
            "watch 0.606,\n",
            "sink 0.672,coco_sink 0.632, oid_Sink 0.506, \n",
            "horse 0.791,coco_horse 0.817, oid_Horse 0.789, oid_Animal 0.778, oid_Mule 0.725, oid_Camel 0.264, \n",
            "fish 0.500,oid_Fish 0.559, oid_Animal 0.507, oid_Marine mammal 0.062, \n",
            "apple 0.509,coco_apple 0.484, oid_Apple 0.366, oid_Fruit 0.311, oid_Peach 0.226, coco_orange 0.017, \n",
            "camera 0.332,oid_Camera 0.170, coco_cell phone 0.064, \n",
            "candle 0.348,oid_Candle 0.248, \n",
            "teddy bear 0.622,coco_teddy bear 0.622, oid_Toy 0.525, oid_Teddy bear 0.489, oid_Animal 0.447, oid_Carnivore 0.443, \n",
            "cake 0.400,coco_cake 0.411, oid_Dessert 0.390, oid_Cake 0.195, oid_Muffin 0.109, coco_sandwich 0.026, \n",
            "motorcycle 0.740,coco_motorcycle 0.726, oid_Motorcycle 0.674, oid_Vehicle 0.426, oid_Land vehicle 0.406, oid_Snowmobile 0.175, \n",
            "wild bird 0.640,coco_bird 0.714, oid_Bird 0.614, oid_Animal 0.579, oid_Raven 0.227, oid_Sparrow 0.210, \n",
            "laptop 0.683,coco_laptop 0.697, oid_Laptop 0.633, oid_Tablet computer 0.199, oid_Office supplies 0.131, coco_tv 0.021, \n",
            "knife 0.457,coco_knife 0.462, oid_Kitchen knife 0.203, oid_Knife 0.161, oid_Weapon 0.075, oid_Tableware 0.046, \n",
            "traffic sign 0.527,oid_Traffic sign 0.229, \n",
            "cell phone 0.482,coco_cell phone 0.511, oid_Mobile phone 0.344, \n",
            "paddle 0.436,oid_Paddle 0.421, \n",
            "truck 0.430,coco_truck 0.432, oid_Truck 0.292, oid_Land vehicle 0.146, oid_Vehicle 0.140, oid_Van 0.106, \n",
            "cow 0.754,coco_cow 0.789, oid_Cattle 0.785, oid_Animal 0.728, oid_Bull 0.667, oid_Goat 0.252, \n",
            "power outlet 0.585,\n",
            "clock 0.795,coco_clock 0.795, oid_Clock 0.723, oid_Wall clock 0.670, oid_Alarm clock 0.430, oid_Furniture 0.038, \n",
            "drum 0.670,oid_Drum 0.659, oid_Musical instrument 0.349, \n",
            "fork 0.481,coco_fork 0.498, oid_Fork 0.426, oid_Tableware 0.072, oid_Spoon 0.046, coco_knife 0.035, \n",
            "bus 0.664,coco_bus 0.652, oid_Bus 0.594, oid_Land vehicle 0.408, oid_Vehicle 0.405, oid_Ambulance 0.090, \n",
            "hanger 0.072,\n",
            "nightstand 0.824,oid_Nightstand 0.805, oid_Chest of drawers 0.569, oid_Furniture 0.313, oid_Filing cabinet 0.306, oid_Table 0.229, \n",
            "pot/pan 0.520,oid_Wok 0.341, oid_Kitchen appliance 0.256, oid_Frying pan 0.242, coco_bowl 0.087, \n",
            "sheep 0.800,coco_sheep 0.807, oid_Sheep 0.727, oid_Animal 0.658, oid_Goat 0.571, oid_Alpaca 0.301, \n",
            "guitar 0.738,oid_Guitar 0.718, oid_Musical instrument 0.578, oid_Person 0.011, \n",
            "traffic cone 0.701,\n",
            "tea pot 0.448,oid_Kettle 0.329, oid_Teapot 0.266, oid_Jug 0.227, oid_Pitcher 0.153, oid_Tableware 0.082, \n",
            "keyboard 0.739,coco_keyboard 0.720, oid_Computer keyboard 0.666, oid_Office supplies 0.040, \n",
            "tripod 0.462,oid_Tripod 0.231, \n",
            "hockey 0.431,\n",
            "fan 0.688,oid_Mechanical fan 0.628, oid_Ceiling fan 0.584, \n",
            "dog 0.786,coco_dog 0.796, oid_Carnivore 0.774, oid_Dog 0.757, oid_Animal 0.671, oid_Fox 0.379, \n",
            "spoon 0.386,coco_spoon 0.393, oid_Spoon 0.343, oid_Tableware 0.066, oid_Fork 0.059, coco_fork 0.058, \n",
            "blackboard/whiteboard 0.622,oid_Whiteboard 0.438, \n",
            "balloon 0.568,oid_Balloon 0.499, oid_Toy 0.478, coco_sports ball 0.141, \n",
            "air conditioner 0.493,oid_Window blind 0.168, oid_Window 0.082, \n",
            "cymbal 0.700,\n",
            "mouse 0.736,coco_mouse 0.725, oid_Mouse 0.646, \n",
            "telephone 0.603,oid_Corded phone 0.472, oid_Telephone 0.316, oid_Office supplies 0.033, \n",
            "pickup truck 0.602,coco_truck 0.501, oid_Truck 0.389, oid_Vehicle 0.259, oid_Land vehicle 0.249, oid_Car 0.131, \n",
            "orange 0.380,coco_orange 0.463, oid_Orange 0.444, oid_Fruit 0.300, oid_Grapefruit 0.218, oid_Lemon 0.129, \n",
            "banana 0.563,coco_banana 0.567, oid_Banana 0.484, oid_Fruit 0.222, \n",
            "airplane 0.829,coco_airplane 0.841, oid_Airplane 0.821, oid_Aircraft 0.790, oid_Vehicle 0.740, oid_Missile 0.116, \n",
            "luggage 0.511,coco_suitcase 0.542, oid_Suitcase 0.504, oid_Briefcase 0.397, oid_Luggage and bags 0.310, oid_Backpack 0.095, \n",
            "skis 0.610,coco_skis 0.615, oid_Ski 0.587, oid_Snowboard 0.183, \n",
            "soccer 0.817,coco_sports ball 0.853, oid_Ball 0.842, oid_Football 0.808, oid_Cricket ball 0.661, oid_Rugby ball 0.645, \n",
            "trolley 0.420,oid_Cart 0.222, oid_Land vehicle 0.135, oid_Vehicle 0.127, oid_Stretcher 0.085, oid_Golf cart 0.060, \n",
            "oven 0.741,coco_oven 0.599, oid_Oven 0.430, oid_Microwave oven 0.250, oid_Home appliance 0.219, oid_Kitchen appliance 0.207, \n",
            "remote 0.588,coco_remote 0.577, oid_Power plugs and sockets 0.098, coco_cell phone 0.058, \n",
            "baseball glove 0.840,coco_baseball glove 0.849, oid_Baseball glove 0.836, oid_Glove 0.599, \n",
            "paper towel 0.583,oid_Toilet paper 0.482, oid_Paper towel 0.380, coco_cup 0.013, \n",
            "refrigerator 0.705,coco_refrigerator 0.748, oid_Refrigerator 0.683, oid_Home appliance 0.207, oid_Beaker 0.129, oid_Kitchen appliance 0.122, \n",
            "train 0.838,coco_train 0.843, oid_Train 0.839, oid_Vehicle 0.810, oid_Land vehicle 0.800, \n",
            "tomato 0.322,oid_Tomato 0.273, oid_Fruit 0.180, oid_Vegetable 0.125, coco_apple 0.039, \n",
            "machinery vehicle 0.460,oid_Snowplow 0.326, coco_truck 0.270, oid_Land vehicle 0.181, oid_Vehicle 0.174, oid_Tank 0.133, \n",
            "tent 0.650,oid_Tent 0.659, \n",
            "shampoo/shower gel 0.302,coco_bottle 0.390, oid_Personal care 0.186, oid_Bottle 0.091, oid_Tableware 0.051, \n",
            "head phone 0.389,oid_Headphones 0.339, \n",
            "lantern 0.493,oid_Lantern 0.473, \n",
            "donut 0.734,coco_donut 0.750, oid_Doughnut 0.607, oid_Bagel 0.598, oid_Dessert 0.293, oid_Pretzel 0.261, \n",
            "cleaning products 0.401,coco_bottle 0.372, oid_Bottle 0.142, oid_Personal care 0.068, oid_Tableware 0.043, \n",
            "sailboat 0.668,oid_Watercraft 0.272, oid_Vehicle 0.249, coco_boat 0.231, oid_Boat 0.225, oid_Gondola 0.119, \n",
            "tangerine 0.071,coco_orange 0.143, oid_Orange 0.141, oid_Fruit 0.101, oid_Grapefruit 0.084, \n",
            "pizza 0.795,coco_pizza 0.818, oid_Pizza 0.789, oid_Tart 0.487, oid_Taco 0.422, oid_Pancake 0.162, \n",
            "kite 0.671,coco_kite 0.682, oid_Kite 0.675, oid_Toy 0.664, oid_Parachute 0.395, \n",
            "computer box 0.570,oid_Office supplies 0.093, \n",
            "elephant 0.856,coco_elephant 0.856, oid_Elephant 0.842, oid_Animal 0.810, oid_Rhinoceros 0.730, oid_Dinosaur 0.450, \n",
            "toiletries 0.300,coco_bottle 0.255, oid_Personal care 0.194, coco_cup 0.019, \n",
            "gas stove 0.623,oid_Gas stove 0.645, coco_oven 0.167, oid_Kitchen appliance 0.051, oid_Home appliance 0.011, \n",
            "broccoli 0.631,coco_broccoli 0.573, oid_Broccoli 0.492, oid_Vegetable 0.283, \n",
            "toilet 0.884,coco_toilet 0.885, oid_Toilet 0.868, oid_Bidet 0.637, \n",
            "stroller 0.607,oid_Wheelchair 0.366, oid_Stretcher 0.260, oid_Land vehicle 0.161, oid_Vehicle 0.155, oid_Segway 0.050, \n",
            "shovel 0.302,oid_Spatula 0.200, coco_spoon 0.089, oid_Spoon 0.060, oid_Weapon 0.059, oid_Sword 0.044, \n",
            "baseball bat 0.699,coco_baseball bat 0.710, oid_Baseball bat 0.688, \n",
            "microwave 0.816,coco_microwave 0.827, oid_Microwave oven 0.796, oid_Oven 0.680, oid_Home appliance 0.271, oid_Kitchen appliance 0.109, \n",
            "skateboard 0.663,coco_skateboard 0.682, oid_Skateboard 0.679, oid_Roller skates 0.195, oid_Footwear 0.032, \n",
            "surfboard 0.731,coco_surfboard 0.743, oid_Surfboard 0.730, oid_Vehicle 0.022, \n",
            "surveillance camera 0.246,\n",
            "gun 0.421,oid_Weapon 0.362, oid_Shotgun 0.348, oid_Rifle 0.339, oid_Handgun 0.078, \n",
            "life saver 0.473,\n",
            "cat 0.879,coco_cat 0.881, oid_Cat 0.864, oid_Carnivore 0.854, oid_Animal 0.841, oid_Lynx 0.718, \n",
            "lemon 0.340,oid_Lemon 0.302, coco_orange 0.297, oid_Fruit 0.194, oid_Orange 0.113, oid_Grapefruit 0.037, \n",
            "liquid soap 0.589,coco_bottle 0.364, oid_Bottle 0.046, oid_Personal care 0.041, oid_Tableware 0.023, \n",
            "zebra 0.851,coco_zebra 0.854, oid_Zebra 0.815, oid_Animal 0.674, oid_Tiger 0.445, oid_Centipede 0.354, \n",
            "duck 0.787,oid_Duck 0.746, oid_Bird 0.675, coco_bird 0.656, oid_Animal 0.627, oid_Goose 0.627, \n",
            "sports car 0.726,oid_Vehicle 0.615, oid_Limousine 0.595, oid_Land vehicle 0.502, oid_Jet ski 0.395, oid_Car 0.379, \n",
            "giraffe 0.965,coco_giraffe 0.965, oid_Giraffe 0.957, oid_Animal 0.812, oid_Jaguar 0.404, oid_Leopard 0.374, \n",
            "pumpkin 0.581,oid_Pumpkin 0.451, oid_Squash 0.411, oid_Vegetable 0.329, oid_Lantern 0.145, oid_Fruit 0.083, \n",
            "piano 0.423,oid_Piano 0.355, oid_Organ 0.275, oid_Musical keyboard 0.259, oid_Harpsichord 0.249, oid_Musical instrument 0.182, \n",
            "stop sign 0.769,coco_stop sign 0.746, oid_Traffic sign 0.678, oid_Stop sign 0.627, oid_Digital clock 0.158, oid_Porcupine 0.149, \n",
            "radiator 0.640,oid_Window blind 0.168, \n",
            "converter 0.332,\n",
            "tissue  0.424,\n",
            "carrot 0.454,coco_carrot 0.506, oid_Carrot 0.358, oid_Vegetable 0.158, \n",
            "washing machine 0.769,oid_Washing machine 0.793, oid_Home appliance 0.397, oid_Kitchen appliance 0.030, \n",
            "vent 0.688,oid_Home appliance 0.087, \n",
            "cookies 0.085,oid_Cookie 0.105, oid_Dessert 0.071, coco_cake 0.032, \n",
            "cutting/chopping board 0.401,oid_Cutting board 0.253, oid_Pizza 0.078, coco_pizza 0.061, coco_dining table 0.051, \n",
            "tennis racket 0.902,coco_tennis racket 0.910, oid_Tennis racket 0.909, oid_Racket 0.899, \n",
            "candy 0.000,\n",
            "skating and skiing shoes 0.615,oid_Footwear 0.669, oid_Roller skates 0.625, \n",
            "scissors 0.512,coco_scissors 0.513, oid_Scissors 0.392, \n",
            "folder 0.000,coco_book 0.164, oid_Book 0.082, oid_Office supplies 0.040, \n",
            "baseball 0.651,coco_sports ball 0.676, oid_Cricket ball 0.611, oid_Ball 0.534, oid_Tennis ball 0.133, \n",
            "strawberry 0.569,oid_Strawberry 0.491, oid_Fruit 0.216, \n",
            "bow tie 0.528,coco_tie 0.321, oid_Tie 0.137, \n",
            "pigeon 0.762,coco_bird 0.772, oid_Animal 0.702, oid_Bird 0.691, oid_Raven 0.394, oid_Sparrow 0.299, \n",
            "pepper 0.192,oid_Vegetable 0.056, \n",
            "coffee machine 0.631,oid_Coffeemaker 0.596, oid_Food processor 0.462, oid_Blender 0.394, oid_Home appliance 0.381, oid_Mixer 0.364, \n",
            "bathtub 0.763,oid_Bathtub 0.731, coco_sink 0.055, \n",
            "snowboard 0.585,oid_Snowboard 0.614, coco_snowboard 0.563, oid_Dagger 0.267, oid_Skateboard 0.169, oid_Sword 0.153, \n",
            "suitcase 0.188,coco_suitcase 0.283, oid_Suitcase 0.161, oid_Briefcase 0.144, oid_Luggage and bags 0.077, \n",
            "grapes 0.296,oid_Grape 0.176, oid_Fruit 0.030, \n",
            "ladder 0.475,oid_Ladder 0.468, \n",
            "pear 0.174,oid_Pear 0.130, oid_Fruit 0.074, coco_apple 0.039, coco_orange 0.034, oid_Apple 0.024, \n",
            "american football 0.634,oid_Ball 0.609, coco_sports ball 0.607, oid_Rugby ball 0.523, oid_Cricket ball 0.300, oid_Volleyball 0.179, \n",
            "basketball 0.676,oid_Ball 0.687, coco_sports ball 0.596, oid_Volleyball 0.490, oid_Rugby ball 0.397, \n",
            "potato 0.134,\n",
            "paint brush 0.238,oid_Pen 0.120, oid_Office supplies 0.060, \n",
            "printer 0.725,oid_Printer 0.708, oid_Home appliance 0.551, oid_Office supplies 0.485, oid_Toaster 0.148, \n",
            "billiards 0.697,oid_Ball 0.650, coco_sports ball 0.515, \n",
            "fire hydrant 0.816,coco_fire hydrant 0.838, oid_Fire hydrant 0.768, oid_Cannon 0.309, oid_Pressure cooker 0.198, oid_Waste container 0.047, \n",
            "goose 0.643,oid_Animal 0.653, oid_Bird 0.628, coco_bird 0.558, oid_Goose 0.551, oid_Duck 0.456, \n",
            "projector 0.689,\n",
            "sausage 0.439,coco_hot dog 0.370, coco_carrot 0.057, oid_Vegetable 0.045, \n",
            "fire extinguisher 0.671,\n",
            "extension cord 0.215,\n",
            "facial mask 0.468,oid_Human face 0.152, \n",
            "tennis ball 0.731,coco_sports ball 0.793, oid_Tennis ball 0.731, oid_Ball 0.723, oid_Cricket ball 0.347, oid_Golf ball 0.030, \n",
            "chopsticks 0.328,oid_Chopsticks 0.295, coco_spoon 0.115, oid_Tableware 0.110, coco_fork 0.061, coco_knife 0.049, \n",
            "electronic stove and gas stove 0.435,oid_Gas stove 0.391, coco_oven 0.050, oid_Kitchen appliance 0.019, oid_Home appliance 0.016, oid_Countertop 0.012, \n",
            "pie 0.339,coco_pizza 0.380, oid_Pizza 0.348, oid_Tart 0.191, oid_Taco 0.144, oid_Pancake 0.141, \n",
            "frisbee 0.890,coco_frisbee 0.909, oid_Coin 0.376, oid_Snail 0.119, oid_Rugby ball 0.093, oid_Shellfish 0.040, \n",
            "kettle 0.540,oid_Kettle 0.465, oid_Coffeemaker 0.193, oid_Food processor 0.136, oid_Kitchen appliance 0.102, oid_Jug 0.082, \n",
            "hamburger 0.560,coco_sandwich 0.627, oid_Hamburger 0.620, oid_Submarine sandwich 0.567, oid_Sandwich 0.563, oid_Hot dog 0.296, \n",
            "golf club 0.574,oid_Crutch 0.098, \n",
            "cucumber 0.176,oid_Cucumber 0.159, oid_Zucchini 0.144, oid_Vegetable 0.126, oid_Winter melon 0.063, \n",
            "clutch 0.133,coco_cell phone 0.045, coco_handbag 0.023, \n",
            "blender 0.462,oid_Blender 0.449, oid_Mixer 0.431, oid_Food processor 0.405, oid_Coffeemaker 0.346, oid_Home appliance 0.142, \n",
            "tong 0.285,coco_spoon 0.093, coco_fork 0.068, coco_knife 0.057, oid_Tableware 0.020, \n",
            "slide 0.551,\n",
            "hot dog 0.436,coco_hot dog 0.531, oid_Hot dog 0.457, oid_Sandwich 0.440, oid_Submarine sandwich 0.414, oid_Hamburger 0.375, \n",
            "toothbrush 0.583,coco_toothbrush 0.597, oid_Drinking straw 0.119, oid_Screwdriver 0.106, oid_Personal care 0.058, \n",
            "facial cleanser 0.339,oid_Personal care 0.247, coco_bottle 0.043, coco_cup 0.021, \n",
            "mango 0.095,oid_Mango 0.150, oid_Pear 0.140, oid_Fruit 0.075, coco_orange 0.036, coco_apple 0.034, \n",
            "deer 0.581,oid_Animal 0.538, oid_Deer 0.517, oid_Antelope 0.486, oid_Goat 0.365, oid_Kangaroo 0.358, \n",
            "egg 0.529,oid_Egg 0.442, coco_sandwich 0.020, oid_Hamburger 0.020, coco_donut 0.020, coco_sports ball 0.020, \n",
            "violin 0.410,oid_Violin 0.196, oid_Musical instrument 0.091, oid_Cello 0.033, oid_Flute 0.015, oid_Oboe 0.012, \n",
            "marker 0.124,oid_Pen 0.078, oid_Office supplies 0.049, coco_toothbrush 0.030, \n",
            "ship 0.482,oid_Barge 0.480, oid_Watercraft 0.408, coco_boat 0.365, oid_Vehicle 0.363, oid_Boat 0.330, \n",
            "chicken 0.545,coco_bird 0.608, oid_Bird 0.566, oid_Animal 0.489, oid_Chicken 0.472, oid_Turkey 0.365, \n",
            "onion 0.356,coco_apple 0.132, oid_Apple 0.092, oid_Peach 0.055, oid_Fruit 0.035, oid_Vegetable 0.026, \n",
            "ice cream 0.195,oid_Dessert 0.247, oid_Ice cream 0.177, coco_cake 0.126, oid_Candy 0.048, oid_Tart 0.040, \n",
            "tape 0.321,oid_Adhesive tape 0.226, coco_bowl 0.025, coco_cup 0.019, \n",
            "wheelchair 0.645,oid_Wheelchair 0.723, oid_Land vehicle 0.613, oid_Vehicle 0.581, coco_bicycle 0.163, coco_motorcycle 0.126, \n",
            "plum 0.247,coco_apple 0.119, oid_Apple 0.083, oid_Pomegranate 0.059, oid_Fruit 0.043, oid_Pear 0.042, \n",
            "bar soap 0.363,coco_bowl 0.024, oid_Dessert 0.020, oid_Tableware 0.010, \n",
            "scale 0.477,oid_Alarm clock 0.050, coco_clock 0.024, coco_bowl 0.021, oid_Bowl 0.021, oid_Digital clock 0.020, \n",
            "watermelon 0.435,oid_Watermelon 0.475, oid_Fruit 0.288, oid_Common fig 0.099, oid_Winter melon 0.047, oid_Strawberry 0.037, \n",
            "cabbage 0.545,oid_Cabbage 0.387, oid_Vegetable 0.338, \n",
            "router/modem 0.174,oid_Office supplies 0.046, coco_cell phone 0.015, \n",
            "golf ball 0.690,oid_Golf ball 0.604, coco_sports ball 0.295, oid_Ball 0.071, coco_bird 0.042, oid_Cricket ball 0.038, \n",
            "pine apple 0.479,oid_Pineapple 0.491, oid_Fruit 0.238, \n",
            "crane 0.503,oid_Building 0.103, oid_Tower 0.046, oid_Tank 0.020, oid_Skyscraper 0.011, \n",
            "fire truck 0.747,coco_truck 0.627, oid_Tank 0.617, oid_Land vehicle 0.487, oid_Ambulance 0.468, oid_Vehicle 0.411, \n",
            "peach 0.038,coco_orange 0.238, oid_Orange 0.099, oid_Fruit 0.089, coco_apple 0.049, oid_Peach 0.045, \n",
            "cello 0.543,oid_Cello 0.491, oid_Violin 0.275, oid_Musical instrument 0.182, oid_Harp 0.087, oid_Person 0.046, \n",
            "notepaper 0.261,coco_book 0.011, \n",
            "tricycle 0.334,oid_Cart 0.293, oid_Land vehicle 0.275, oid_Vehicle 0.255, oid_Wheelchair 0.226, oid_Golf cart 0.177, \n",
            "toaster 0.733,coco_toaster 0.664, oid_Toaster 0.623, oid_Kitchen appliance 0.319, oid_Home appliance 0.251, oid_Coffeemaker 0.142, \n",
            "helicopter 0.717,oid_Helicopter 0.709, oid_Vehicle 0.688, oid_Aircraft 0.487, coco_airplane 0.360, oid_Airplane 0.095, \n",
            "green beans 0.136,\n",
            "brush 0.124,oid_Spatula 0.046, oid_Pen 0.044, oid_Office supplies 0.041, oid_Wrench 0.040, coco_spoon 0.035, \n",
            "carriage 0.629,oid_Cart 0.561, oid_Land vehicle 0.420, oid_Vehicle 0.387, oid_Horse 0.103, coco_horse 0.099, \n",
            "cigar 0.020,coco_toothbrush 0.050, oid_Chopsticks 0.020, oid_Drinking straw 0.020, \n",
            "earphone 0.091,oid_Headphones 0.022, oid_Watch 0.020, \n",
            "penguin 0.728,oid_Penguin 0.720, oid_Animal 0.718, oid_Bird 0.709, coco_bird 0.563, oid_Marine mammal 0.414, \n",
            "hurdle 0.067,oid_Ladder 0.020, oid_Fountain 0.020, coco_horse 0.013, oid_Horse 0.013, oid_Mule 0.012, \n",
            "swing 0.293,oid_Bow and arrow 0.165, oid_Weapon 0.058, oid_Woman 0.027, oid_Bench 0.023, oid_Girl 0.020, \n",
            "radio 0.499,oid_Digital clock 0.168, oid_Camera 0.119, oid_Dice 0.114, oid_Home appliance 0.106, oid_Toaster 0.084, \n",
            "CD 0.569,oid_Coin 0.030, coco_clock 0.019, \n",
            "parking meter 0.508,coco_parking meter 0.210, oid_Punching bag 0.041, oid_Waste container 0.014, \n",
            "swan 0.587,oid_Animal 0.705, oid_Bird 0.654, oid_Swan 0.606, coco_bird 0.588, oid_Goose 0.291, \n",
            "garlic 0.099,coco_vase 0.053, oid_Egg 0.050, \n",
            "french fries 0.494,oid_French fries 0.491, oid_Potato 0.107, oid_Pasta 0.051, coco_bowl 0.035, oid_Vegetable 0.024, \n",
            "horn 0.266,oid_Light bulb 0.043, coco_traffic light 0.022, oid_Binoculars 0.020, oid_Traffic light 0.018, coco_clock 0.013, \n",
            "avocado 0.173,oid_Pear 0.156, oid_Lemon 0.122, oid_Fruit 0.106, oid_Common fig 0.082, oid_Mango 0.045, \n",
            "saxophone 0.606,oid_Saxophone 0.577, oid_Horn 0.295, oid_Oboe 0.295, oid_Musical instrument 0.242, oid_Trumpet 0.081, \n",
            "trumpet 0.380,oid_Trumpet 0.355, oid_Horn 0.237, oid_Trombone 0.223, oid_Musical instrument 0.191, oid_Saxophone 0.052, \n",
            "sandwich 0.559,coco_sandwich 0.628, oid_Sandwich 0.566, oid_Submarine sandwich 0.404, oid_Hamburger 0.400, oid_Bread 0.075, \n",
            "cue 0.486,coco_baseball bat 0.050, oid_Chopsticks 0.030, \n",
            "kiwi fruit 0.050,coco_apple 0.018, oid_Fruit 0.015, \n",
            "bear 0.893,oid_Carnivore 0.916, oid_Bear 0.911, coco_bear 0.892, oid_Animal 0.888, oid_Raccoon 0.867, \n",
            "fishing rod 0.261,oid_Dragonfly 0.059, oid_Ladder 0.020, oid_Tripod 0.020, oid_Insect 0.020, oid_Bow and arrow 0.016, \n",
            "cherry 0.246,oid_Tomato 0.092, oid_Vegetable 0.054, oid_Fruit 0.041, oid_Pomegranate 0.035, \n",
            "tablet 0.374,oid_Tablet computer 0.386, coco_laptop 0.123, oid_Laptop 0.046, coco_cell phone 0.043, oid_Office supplies 0.039, \n",
            "green vegetables 0.106,oid_Cutting board 0.030, oid_Vegetable 0.015, oid_Picnic basket 0.015, \n",
            "nuts 0.000,oid_Kitchen appliance 0.040, oid_Wok 0.020, oid_Frying pan 0.020, \n",
            "corn 0.232,oid_Vegetable 0.031, coco_hot dog 0.030, \n",
            "key 0.004,coco_scissors 0.011, \n",
            "screwdriver 0.084,oid_Screwdriver 0.030, oid_Pen 0.026, \n",
            "globe 0.868,oid_Light bulb 0.589, oid_Lantern 0.172, oid_Balloon 0.099, oid_Egg 0.069, oid_Kettle 0.030, \n",
            "broom 0.360,oid_Crutch 0.120, oid_Spatula 0.089, oid_Woman 0.036, coco_person 0.035, oid_Girl 0.030, \n",
            "pliers 0.140,coco_knife 0.040, oid_Shotgun 0.030, oid_Weapon 0.030, oid_Sword 0.030, oid_Dumbbell 0.015, \n",
            "volleyball 0.709,oid_Ball 0.797, oid_Rugby ball 0.785, oid_Volleyball 0.754, oid_Cricket ball 0.750, coco_sports ball 0.733, \n",
            "hammer 0.105,oid_Spatula 0.059, oid_Screwdriver 0.050, coco_baseball bat 0.040, oid_Wrench 0.030, oid_Torch 0.030, \n",
            "eggplant 0.000,oid_Tomato 0.065, oid_Vegetable 0.014, \n",
            "trophy 0.551,coco_wine glass 0.160, oid_Blender 0.069, coco_vase 0.064, oid_Wine glass 0.052, oid_Saxophone 0.050, \n",
            "dates 0.000,coco_bowl 0.089, oid_Bowl 0.030, oid_Vegetable 0.015, \n",
            "board eraser 0.541,\n",
            "rice 0.339,coco_bowl 0.101, oid_Pasta 0.059, oid_Salad 0.058, oid_Bowl 0.033, oid_Cabbage 0.030, \n",
            "tape measure/ruler 0.092,oid_Office supplies 0.048, oid_Drinking straw 0.030, oid_Flashlight 0.030, oid_Binoculars 0.015, oid_Ring binder 0.015, \n",
            "dumbbell 0.249,oid_Dumbbell 0.217, oid_Headphones 0.059, oid_Toy 0.051, coco_teddy bear 0.015, \n",
            "hamimelon 0.347,oid_Coconut 0.158, oid_Squash 0.069, oid_Mango 0.047, oid_Fruit 0.042, oid_Lemon 0.040, \n",
            "stapler 0.362,oid_Office supplies 0.088, coco_cell phone 0.053, oid_Corded phone 0.030, oid_Tap 0.015, oid_Mouse 0.010, \n",
            "camel 0.808,oid_Camel 0.747, oid_Animal 0.735, coco_horse 0.067, oid_Mule 0.050, oid_Alpaca 0.030, \n",
            "lettuce 0.084,oid_Cabbage 0.139, oid_Vegetable 0.107, oid_Salad 0.092, oid_Sushi 0.040, coco_broccoli 0.020, \n",
            "goldfish 0.470,oid_Fish 0.466, oid_Goldfish 0.465, oid_Animal 0.459, \n",
            "meat balls 0.390,oid_Dessert 0.369, coco_cake 0.149, oid_Ice cream 0.109, coco_donut 0.109, oid_Bagel 0.079, \n",
            "medal 0.437,oid_Earrings 0.043, coco_clock 0.020, \n",
            "toothpaste 0.375,oid_Personal care 0.179, coco_toothbrush 0.086, \n",
            "antelope 0.511,oid_Antelope 0.485, oid_Animal 0.298, oid_Deer 0.295, oid_Kangaroo 0.160, oid_Goat 0.116, \n",
            "shrimp 0.755,oid_Shrimp 0.601, oid_Marine invertebrates 0.563, oid_Seafood 0.495, oid_Animal 0.357, oid_Shellfish 0.040, \n",
            "rickshaw 0.410,oid_Cart 0.418, oid_Wheelchair 0.280, oid_Land vehicle 0.257, oid_Vehicle 0.256, oid_Stretcher 0.082, \n",
            "trombone 0.468,oid_Trombone 0.362, oid_Trumpet 0.156, oid_Musical instrument 0.139, oid_Horn 0.099, coco_baseball bat 0.040, \n",
            "pomegranate 0.241,coco_apple 0.621, oid_Apple 0.619, oid_Peach 0.540, oid_Fruit 0.369, oid_Pomegranate 0.260, \n",
            "coconut 0.367,oid_Coconut 0.188, oid_Fruit 0.062, oid_Mango 0.040, oid_Pear 0.040, oid_Vegetable 0.035, \n",
            "jellyfish 0.685,oid_Animal 0.710, oid_Jellyfish 0.636, oid_Marine invertebrates 0.574, \n",
            "mushroom 0.000,coco_umbrella 0.119, coco_hot dog 0.119, oid_Tent 0.119, oid_Animal 0.065, oid_Tree 0.059, \n",
            "calculator 0.540,coco_cell phone 0.131, oid_Mobile phone 0.094, oid_Office supplies 0.084, coco_remote 0.064, oid_Corded phone 0.037, \n",
            "treadmill 0.607,oid_Treadmill 0.636, oid_Stationary bicycle 0.144, oid_Bench 0.138, coco_chair 0.041, oid_Organ 0.040, \n",
            "butterfly 0.271,oid_Insect 0.218, oid_Animal 0.178, oid_Butterfly 0.129, oid_Moths and butterflies 0.129, oid_Invertebrate 0.040, \n",
            "egg tart 0.040,coco_bowl 0.310, oid_Bowl 0.267, coco_donut 0.119, oid_Muffin 0.079, oid_Dessert 0.076, \n",
            "cheese 0.084,coco_cake 0.130, oid_Dessert 0.109, oid_Sandwich 0.109, oid_Tart 0.092, oid_Banana 0.059, \n",
            "pig 0.469,oid_Animal 0.528, oid_Pig 0.518, oid_Rhinoceros 0.424, coco_sheep 0.302, oid_Sheep 0.258, \n",
            "pomelo 0.585,oid_Mango 0.455, oid_Pear 0.349, oid_Apple 0.313, oid_Orange 0.307, coco_apple 0.265, \n",
            "race car 0.733,oid_Snowmobile 0.742, oid_Vehicle 0.680, oid_Land vehicle 0.528, oid_Aircraft 0.443, oid_Jet ski 0.322, \n",
            "rice cooker 0.363,oid_Kitchen appliance 0.477, oid_Slow cooker 0.427, oid_Home appliance 0.384, oid_Food processor 0.379, oid_Toaster 0.319, \n",
            "tuba 0.490,oid_Horn 0.187, oid_Musical instrument 0.140, oid_Trombone 0.114, oid_Saxophone 0.049, oid_Trumpet 0.031, \n",
            "crosswalk sign 0.618,oid_Traffic sign 0.303, oid_Billboard 0.018, \n",
            "papaya 0.000,coco_orange 0.329, oid_Lemon 0.257, oid_Orange 0.257, oid_Fruit 0.153, oid_Grapefruit 0.129, \n",
            "hair drier 0.331,coco_hair drier 0.323, oid_Shower 0.235, oid_Power plugs and sockets 0.141, oid_Toilet paper 0.045, oid_Sewing machine 0.040, \n",
            "green onion 0.000,oid_Asparagus 0.252, oid_Vegetable 0.019, \n",
            "chips 0.267,oid_French fries 0.178, oid_Ice cream 0.099, coco_bowl 0.052, coco_banana 0.050, oid_Dessert 0.028, \n",
            "dolphin 0.343,oid_Animal 0.459, oid_Marine mammal 0.403, oid_Dolphin 0.337, oid_Whale 0.337, oid_Shark 0.257, \n",
            "sushi 0.505,oid_Sushi 0.505, \n",
            "urinal 0.937,coco_toilet 0.996, oid_Toilet 0.934, oid_Bidet 0.745, oid_Door handle 0.467, oid_Light switch 0.287, \n",
            "donkey 0.783,oid_Mule 0.705, oid_Animal 0.666, oid_Goat 0.584, oid_Bull 0.560, coco_horse 0.467, \n",
            "electric drill 0.405,oid_Binoculars 0.198, oid_Dumbbell 0.168, oid_Flashlight 0.079, oid_Toy 0.059, oid_Handgun 0.059, \n",
            "spring rolls 0.149,coco_sandwich 0.188, oid_Burrito 0.178, oid_Taco 0.067, oid_Sandwich 0.041, oid_Glove 0.030, \n",
            "tortoise/turtle 0.535,oid_Turtle 0.535, oid_Sea turtle 0.535, oid_Animal 0.493, oid_Marine mammal 0.387, oid_Tortoise 0.386, \n",
            "parrot 0.870,oid_Bird 0.982, oid_Animal 0.977, coco_bird 0.921, oid_Parrot 0.870, oid_Canary 0.758, \n",
            "flute 0.097,oid_Flute 0.099, oid_Oboe 0.091, oid_Musical instrument 0.057, oid_Guitar 0.017, \n",
            "measuring cup 0.389,oid_Spatula 0.129, oid_Wok 0.109, oid_Frying pan 0.093, coco_cup 0.086, oid_Coffee cup 0.069, \n",
            "shark 0.577,oid_Shark 0.577, oid_Marine mammal 0.571, oid_Animal 0.554, oid_Fish 0.415, oid_Whale 0.406, \n",
            "steak 0.218,coco_sandwich 0.086, oid_Pasta 0.079, coco_pizza 0.079, oid_Taco 0.079, oid_Guacamole 0.079, \n",
            "poker card 0.376,oid_Personal care 0.129, coco_book 0.027, \n",
            "binoculars 0.457,oid_Binoculars 0.379, oid_Weapon 0.107, oid_Handgun 0.079, oid_Microphone 0.059, oid_Camera 0.040, \n",
            "llama 0.505,oid_Alpaca 0.694, oid_Animal 0.603, coco_sheep 0.511, oid_Ostrich 0.505, oid_Sheep 0.439, \n",
            "radish 0.129,oid_Radish 0.215, coco_bowl 0.145, oid_Carrot 0.132, oid_Pear 0.129, oid_Mushroom 0.129, \n",
            "noodles 0.149,oid_Pasta 0.119, oid_Taco 0.099, coco_bowl 0.047, oid_Salad 0.030, oid_Bowl 0.030, \n",
            "yak 0.842,oid_Animal 0.903, coco_cow 0.872, oid_Cattle 0.803, oid_Bull 0.693, \n",
            "mop 0.338,oid_Crutch 0.183, oid_Spatula 0.109, oid_Bow and arrow 0.092, oid_Office supplies 0.059, oid_Weapon 0.059, \n",
            "crab 0.162,oid_Seafood 0.212, oid_Animal 0.173, oid_Shellfish 0.119, oid_Crab 0.119, oid_Invertebrate 0.119, \n",
            "microscope 0.605,oid_Sewing machine 0.483, oid_Coffeemaker 0.261, oid_Food processor 0.089, oid_Camera 0.089, oid_Blender 0.089, \n",
            "barbell 0.708,oid_Skateboard 0.079, coco_tennis racket 0.079, oid_Spatula 0.079, oid_Racket 0.079, oid_Dumbbell 0.074, \n",
            "bread/bun 0.208,oid_Dessert 0.519, coco_cake 0.345, oid_Bread 0.208, coco_donut 0.208, oid_Ice cream 0.208, \n",
            "baozi 0.663,oid_Animal 0.193, coco_sandwich 0.089, oid_Taco 0.089, oid_Submarine sandwich 0.089, oid_Sandwich 0.089, \n",
            "lion 0.574,oid_Carnivore 0.550, oid_Lion 0.488, oid_Animal 0.421, oid_Cheetah 0.257, oid_Tiger 0.235, \n",
            "red cabbage 0.218,oid_Radish 0.149, \n",
            "polar bear 1.000,oid_Carnivore 1.000, coco_bear 1.000, oid_Marine mammal 1.000, oid_Animal 1.000, oid_Otter 1.000, \n",
            "lighter 0.233,oid_Pen 0.144, oid_Office supplies 0.101, oid_Personal care 0.099, oid_Screwdriver 0.099, oid_Flashlight 0.099, \n",
            "seal 0.737,oid_Sea lion 0.762, oid_Harbor seal 0.757, oid_Animal 0.668, oid_Marine mammal 0.657, oid_Otter 0.604, \n",
            "mangosteen 0.099,coco_apple 0.130, oid_Apple 0.075, oid_Fruit 0.021, \n",
            "comb 0.622,oid_Dumbbell 0.149, coco_hair drier 0.149, oid_Door handle 0.099, oid_Headphones 0.079, coco_knife 0.079, \n",
            "eraser 0.441,\n",
            "pitaya 0.129,coco_apple 0.018, \n",
            "scallop 0.000,oid_Footwear 0.013, \n",
            "pencil case 0.448,oid_Office supplies 0.395, coco_book 0.272, oid_Handbag 0.054, coco_handbag 0.054, oid_Book 0.036, \n",
            "saw 0.415,oid_Weapon 0.206, oid_Dagger 0.099, oid_Wrench 0.099, oid_Spatula 0.099, oid_Sword 0.099, \n",
            "table tennis paddle 0.417,oid_Racket 0.506, oid_Table tennis racket 0.463, coco_frisbee 0.274, coco_tennis racket 0.257, oid_Tennis racket 0.226, \n",
            "okra 0.000,oid_Platter 1.000, oid_Plate 1.000, oid_Tableware 0.500, coco_bowl 0.077, \n",
            "starfish 0.218,oid_Marine invertebrates 0.238, oid_Starfish 0.218, oid_Animal 0.135, oid_Invertebrate 0.109, oid_Seahorse 0.059, \n",
            "eagle 0.693,oid_Animal 0.911, oid_Bird 0.769, coco_bird 0.739, oid_Turkey 0.604, oid_Eagle 0.604, \n",
            "monkey 0.094,coco_bird 0.208, oid_Monkey 0.158, oid_Bird 0.125, oid_Animal 0.113, oid_Bat 0.099, \n",
            "durian 0.000,oid_Pineapple 0.257, coco_broccoli 0.129, oid_Vegetable 0.129, oid_Fruit 0.088, coco_cup 0.043, \n",
            "game board 0.572,coco_keyboard 0.079, oid_Ring binder 0.079, oid_Office supplies 0.079, \n",
            "rabbit 0.307,oid_Rabbit 0.307, oid_Animal 0.265, coco_bird 0.193, oid_Hamster 0.158, oid_Chicken 0.158, \n",
            "french horn 0.231,oid_Horn 0.229, oid_Guitar 0.109, coco_tennis racket 0.109, oid_Trumpet 0.102, oid_Saxophone 0.094, \n",
            "ambulance 0.772,oid_Van 0.851, oid_Ambulance 0.816, oid_Land vehicle 0.735, oid_Vehicle 0.718, coco_truck 0.713, \n",
            "asparagus 0.500,oid_Asparagus 0.337, oid_Vegetable 0.084, coco_carrot 0.013, \n",
            "hoverboard 0.361,oid_Segway 0.308, oid_Vehicle 0.300, oid_Land vehicle 0.262, coco_skateboard 0.208, oid_Skateboard 0.208, \n",
            "pasta 0.386,oid_Pasta 0.386, coco_bowl 0.252, oid_Taco 0.208, coco_pizza 0.208, oid_Pizza 0.109, \n",
            "target 0.436,coco_clock 0.069, coco_frisbee 0.069, \n",
            "hotair balloon 0.604,oid_Toy 0.604, oid_Balloon 0.604, oid_Aircraft 0.604, oid_Parachute 0.505, oid_Kite 0.109, \n",
            "chainsaw 0.604,oid_Dumbbell 0.175, oid_Weapon 0.158, coco_fire hydrant 0.109, oid_Sewing machine 0.109, oid_Shotgun 0.109, \n",
            "lobster 0.268,oid_Lobster 0.538, oid_Crab 0.505, oid_Marine invertebrates 0.478, oid_Animal 0.449, oid_Seafood 0.447, \n",
            "iron 0.406,oid_Door handle 0.307, oid_Vase 0.109, oid_Power plugs and sockets 0.109, oid_Sewing machine 0.109, coco_vase 0.109, \n",
            "flashlight 0.198,coco_bottle 0.135, coco_umbrella 0.027, oid_Umbrella 0.027, oid_Personal care 0.022, \n",
            "time = 251.48913431167603\n",
            "d coco\n",
            "person 0.851,objects365_person 0.846, oid_Person 0.831, oid_Man 0.731, oid_Woman 0.344, \n",
            "bicycle 0.634,objects365_bicycle 0.636, oid_Bicycle 0.594, oid_Land vehicle 0.277, oid_Vehicle 0.257, oid_Wheelchair 0.120, \n",
            "car 0.740,oid_Car 0.670, objects365_car 0.669, oid_Land vehicle 0.509, oid_Vehicle 0.499, objects365_suv 0.381, \n",
            "motorcycle 0.758,objects365_motorcycle 0.743, oid_Motorcycle 0.701, oid_Vehicle 0.419, oid_Land vehicle 0.413, oid_Snowmobile 0.178, \n",
            "airplane 0.911,objects365_airplane 0.905, oid_Airplane 0.893, oid_Aircraft 0.877, oid_Vehicle 0.815, oid_Missile 0.182, \n",
            "bus 0.875,objects365_bus 0.885, oid_Bus 0.850, oid_Vehicle 0.618, oid_Land vehicle 0.609, oid_Ambulance 0.150, \n",
            "train 0.875,objects365_train 0.874, oid_Train 0.861, oid_Vehicle 0.760, oid_Land vehicle 0.716, oid_Jaguar 0.238, \n",
            "truck 0.660,oid_Truck 0.461, objects365_truck 0.439, oid_Land vehicle 0.368, oid_Vehicle 0.358, oid_Van 0.198, \n",
            "boat 0.597,oid_Watercraft 0.582, oid_Boat 0.577, objects365_boat 0.507, oid_Vehicle 0.492, oid_Barge 0.474, \n",
            "traffic light 0.578,objects365_traffic light 0.577, oid_Traffic light 0.570, \n",
            "fire hydrant 0.893,objects365_fire hydrant 0.885, oid_Fire hydrant 0.836, oid_Cannon 0.485, oid_Pressure cooker 0.248, oid_Torch 0.061, \n",
            "stop sign 0.847,objects365_stop sign 0.846, oid_Traffic sign 0.829, oid_Stop sign 0.781, oid_Digital clock 0.385, oid_Porcupine 0.346, \n",
            "parking meter 0.628,objects365_parking meter 0.369, oid_Punching bag 0.321, oid_Binoculars 0.089, oid_Flashlight 0.059, oid_Cricket ball 0.020, \n",
            "bench 0.467,objects365_bench 0.459, oid_Bench 0.403, oid_Furniture 0.325, oid_Bench 0.195, objects365_chair 0.014, \n",
            "bird 0.654,oid_Bird 0.581, oid_Animal 0.480, objects365_wild bird 0.462, oid_Sparrow 0.303, oid_Raven 0.284, \n",
            "cat 0.926,oid_Carnivore 0.930, objects365_cat 0.923, oid_Cat 0.911, oid_Animal 0.908, oid_Lynx 0.860, \n",
            "dog 0.857,objects365_dog 0.848, oid_Dog 0.829, oid_Carnivore 0.829, oid_Animal 0.754, oid_Fox 0.463, \n",
            "horse 0.845,oid_Horse 0.822, objects365_horse 0.814, oid_Animal 0.810, oid_Mule 0.775, oid_Camel 0.224, \n",
            "sheep 0.827,objects365_sheep 0.823, oid_Sheep 0.786, oid_Animal 0.730, oid_Goat 0.613, oid_Alpaca 0.313, \n",
            "cow 0.840,oid_Cattle 0.834, objects365_cow 0.823, oid_Animal 0.818, oid_Bull 0.796, oid_Goat 0.270, \n",
            "elephant 0.904,objects365_elephant 0.903, oid_Elephant 0.894, oid_Animal 0.890, oid_Rhinoceros 0.726, oid_Dinosaur 0.424, \n",
            "bear 0.937,oid_Bear 0.949, oid_Brown bear 0.949, oid_Carnivore 0.944, oid_Animal 0.944, oid_Raccoon 0.908, \n",
            "zebra 0.904,objects365_zebra 0.901, oid_Zebra 0.881, oid_Animal 0.800, oid_Tiger 0.451, oid_Centipede 0.317, \n",
            "giraffe 0.915,objects365_giraffe 0.913, oid_Giraffe 0.909, oid_Animal 0.841, oid_Leopard 0.375, oid_Jaguar 0.375, \n",
            "backpack 0.428,objects365_backpack 0.387, oid_Backpack 0.276, oid_Luggage and bags 0.188, objects365_handbag 0.099, \n",
            "umbrella 0.717,objects365_umbrella 0.677, oid_Umbrella 0.605, \n",
            "handbag 0.412,objects365_handbag 0.396, oid_Handbag 0.222, oid_Luggage and bags 0.100, \n",
            "tie 0.647,objects365_tie 0.613, oid_Tie 0.514, \n",
            "suitcase 0.679,oid_Suitcase 0.622, objects365_luggage 0.570, oid_Briefcase 0.529, objects365_suitcase 0.434, oid_Luggage and bags 0.363, \n",
            "frisbee 0.899,objects365_frisbee 0.900, oid_Coin 0.373, \n",
            "skis 0.512,objects365_skis 0.505, oid_Ski 0.496, oid_Snowboard 0.226, objects365_snowboard 0.036, \n",
            "snowboard 0.641,oid_Snowboard 0.667, objects365_snowboard 0.656, oid_Dagger 0.337, oid_Sword 0.176, oid_Knife 0.119, \n",
            "sports ball 0.720,oid_Ball 0.674, oid_Tennis ball 0.555, objects365_tennis ball 0.428, oid_Cricket ball 0.387, objects365_baseball 0.153, \n",
            "kite 0.738,oid_Kite 0.694, objects365_kite 0.687, oid_Toy 0.630, oid_Parachute 0.478, \n",
            "baseball bat 0.698,objects365_baseball bat 0.677, oid_Baseball bat 0.670, \n",
            "baseball glove 0.736,objects365_baseball glove 0.721, oid_Baseball glove 0.711, oid_Glove 0.513, objects365_glove 0.017, \n",
            "skateboard 0.818,objects365_skateboard 0.809, oid_Skateboard 0.800, oid_Roller skates 0.194, oid_Snowboard 0.079, oid_Sandal 0.055, \n",
            "surfboard 0.692,objects365_surfboard 0.682, oid_Surfboard 0.677, oid_Vehicle 0.016, oid_Watercraft 0.016, \n",
            "tennis racket 0.838,objects365_tennis racket 0.826, oid_Tennis racket 0.820, oid_Racket 0.813, \n",
            "bottle 0.699,objects365_bottle 0.622, oid_Bottle 0.480, oid_Drink 0.249, oid_Tableware 0.201, objects365_shampoo/shower gel 0.068, \n",
            "wine glass 0.664,objects365_wine glass 0.661, oid_Wine glass 0.583, oid_Tableware 0.426, objects365_cup 0.052, oid_Drink 0.047, \n",
            "cup 0.725,objects365_cup 0.733, oid_Coffee cup 0.215, oid_Tableware 0.198, oid_Mug 0.078, \n",
            "fork 0.693,objects365_fork 0.674, oid_Fork 0.604, oid_Tableware 0.171, oid_Spoon 0.105, objects365_spoon 0.051, \n",
            "knife 0.493,objects365_knife 0.445, oid_Tableware 0.043, \n",
            "spoon 0.471,objects365_spoon 0.418, oid_Spoon 0.390, oid_Tableware 0.091, oid_Fork 0.051, objects365_fork 0.050, \n",
            "bowl 0.690,objects365_bowl 0.595, oid_Bowl 0.469, oid_Tableware 0.247, objects365_plate 0.096, objects365_pot/pan 0.023, \n",
            "banana 0.449,objects365_banana 0.372, oid_Banana 0.361, oid_Fruit 0.183, \n",
            "apple 0.397,oid_Apple 0.317, objects365_apple 0.301, oid_Peach 0.229, oid_Fruit 0.214, oid_Pomegranate 0.109, \n",
            "sandwich 0.610,oid_Sandwich 0.585, oid_Hamburger 0.479, oid_Submarine sandwich 0.452, objects365_sandwich 0.395, objects365_hamburger 0.391, \n",
            "orange 0.446,oid_Orange 0.358, oid_Fruit 0.338, objects365_orange 0.329, oid_Grapefruit 0.328, oid_Lemon 0.272, \n",
            "broccoli 0.470,objects365_broccoli 0.431, oid_Broccoli 0.375, oid_Vegetable 0.247, \n",
            "carrot 0.404,objects365_carrot 0.300, oid_Carrot 0.279, oid_Vegetable 0.161, \n",
            "hot dog 0.634,oid_Hot dog 0.495, objects365_hot dog 0.441, oid_Sandwich 0.354, oid_Submarine sandwich 0.352, oid_Pretzel 0.335, \n",
            "pizza 0.759,objects365_pizza 0.745, oid_Pizza 0.737, oid_Tart 0.461, oid_Taco 0.420, oid_Pancake 0.183, \n",
            "donut 0.716,objects365_donut 0.661, oid_Bagel 0.551, oid_Doughnut 0.540, oid_Dessert 0.365, objects365_bread 0.180, \n",
            "cake 0.724,oid_Dessert 0.717, objects365_cake 0.688, oid_Cake 0.515, oid_Tart 0.252, oid_Muffin 0.197, \n",
            "chair 0.584,objects365_chair 0.554, oid_Chair 0.506, oid_Furniture 0.296, \n",
            "couch 0.699,objects365_couch 0.702, oid_Couch 0.653, oid_Sofa bed 0.634, oid_studio couch 0.610, oid_Loveseat 0.570, \n",
            "potted plant 0.653,objects365_potted plant 0.561, oid_Houseplant 0.556, objects365_flower 0.179, \n",
            "bed 0.742,oid_Bed 0.697, objects365_bed 0.692, oid_Infant bed 0.602, oid_Furniture 0.354, oid_Dog bed 0.195, \n",
            "dining table 0.560,objects365_dining table 0.440, oid_Table 0.364, objects365_desk 0.168, oid_Furniture 0.117, oid_Kitchen & dining room table 0.105, \n",
            "toilet 0.859,oid_Toilet 0.857, objects365_toilet 0.753, oid_Bidet 0.706, objects365_urinal 0.130, \n",
            "tv 0.839,objects365_tv 0.829, oid_Computer monitor 0.656, oid_Television 0.634, oid_Home appliance 0.135, oid_Tablet computer 0.059, \n",
            "laptop 0.828,objects365_laptop 0.802, oid_Laptop 0.771, oid_Tablet computer 0.403, oid_Office supplies 0.316, objects365_desk 0.030, \n",
            "mouse 0.837,objects365_mouse 0.826, oid_Mouse 0.810, \n",
            "remote 0.656,objects365_remote 0.588, oid_Power plugs and sockets 0.305, oid_Human foot 0.118, oid_Light switch 0.049, \n",
            "keyboard 0.772,oid_Computer keyboard 0.773, objects365_keyboard 0.679, oid_Office supplies 0.059, \n",
            "cell phone 0.709,objects365_cell phone 0.696, oid_Mobile phone 0.567, objects365_camera 0.036, \n",
            "microwave 0.864,objects365_microwave 0.866, oid_Microwave oven 0.830, oid_Oven 0.763, oid_Home appliance 0.267, oid_Kitchen appliance 0.137, \n",
            "oven 0.605,objects365_oven 0.435, oid_Kitchen appliance 0.359, oid_Home appliance 0.306, oid_Oven 0.276, oid_Microwave oven 0.124, \n",
            "toaster 0.772,oid_Toaster 0.772, objects365_toaster 0.759, oid_Kitchen appliance 0.734, oid_Home appliance 0.575, oid_Slow cooker 0.446, \n",
            "sink 0.665,objects365_sink 0.611, oid_Sink 0.581, oid_Bathtub 0.032, oid_Bathroom cabinet 0.012, oid_Countertop 0.011, \n",
            "refrigerator 0.812,oid_Refrigerator 0.776, objects365_refrigerator 0.773, oid_Home appliance 0.340, oid_Beaker 0.185, oid_Whiteboard 0.166, \n",
            "book 0.410,oid_Book 0.225, objects365_book 0.204, \n",
            "clock 0.772,objects365_clock 0.756, oid_Clock 0.709, oid_Wall clock 0.693, oid_Alarm clock 0.472, oid_Furniture 0.116, \n",
            "vase 0.647,objects365_vase 0.609, oid_Vase 0.534, oid_Jug 0.180, oid_Pitcher 0.159, oid_Flowerpot 0.117, \n",
            "scissors 0.626,objects365_scissors 0.591, oid_Scissors 0.532, oid_Wrench 0.230, oid_Earrings 0.224, oid_Spatula 0.139, \n",
            "teddy bear 0.724,oid_Toy 0.721, objects365_teddy bear 0.713, oid_Teddy bear 0.696, oid_Animal 0.659, oid_Carnivore 0.638, \n",
            "hair drier 0.188,objects365_hair drier 0.188, oid_Shower 0.188, oid_Kitchen appliance 0.099, oid_Kettle 0.099, oid_Headphones 0.099, \n",
            "toothbrush 0.503,objects365_toothbrush 0.516, oid_Drinking straw 0.182, oid_Screwdriver 0.059, objects365_toothpaste 0.051, oid_Personal care 0.032, \n",
            "time = 85.73839402198792\n",
            "d oid\n",
            "Infant bed 0.992,objects365_bed 0.961, coco_bed 0.953, coco_couch 0.158, objects365_couch 0.079, objects365_person 0.077, \n",
            "Rose 0.471,objects365_flower 0.260, \n",
            "Flag 0.685,objects365_flag 0.700, coco_kite 0.092, \n",
            "Flashlight 0.564,objects365_flashlight 0.337, \n",
            "Sea turtle 0.943,objects365_tortoise/turtle 0.945, objects365_seal 0.050, objects365_jellyfish 0.030, coco_elephant 0.015, \n",
            "Camera 0.686,objects365_camera 0.551, objects365_binoculars 0.202, coco_cell phone 0.173, \n",
            "Animal 0.790,coco_dog 0.186, objects365_dog 0.185, \n",
            "Glove 0.579,coco_baseball glove 0.439, objects365_baseball glove 0.339, objects365_glove 0.312, \n",
            "Crocodile 0.914,objects365_tortoise/turtle 0.360, objects365_lobster 0.149, coco_elephant 0.069, objects365_elephant 0.050, objects365_pig 0.030, \n",
            "Cattle 0.501,coco_cow 0.604, objects365_cow 0.524, objects365_yak 0.202, coco_sheep 0.185, objects365_sheep 0.166, \n",
            "House 0.548,\n",
            "Guacamole 0.905,coco_bowl 0.195, objects365_bowl 0.153, objects365_rice 0.127, objects365_lemon 0.040, coco_broccoli 0.020, \n",
            "Penguin 0.934,coco_bird 0.918, objects365_penguin 0.890, objects365_toy 0.051, objects365_dolphin 0.040, objects365_goose 0.030, \n",
            "Vehicle registration plate 0.680,\n",
            "Bench 0.000,\n",
            "Ladybug 0.774,objects365_toy 0.020, \n",
            "Human nose 0.484,\n",
            "Watermelon 0.834,objects365_watermelon 0.625, objects365_hamimelon 0.228, objects365_pumpkin 0.168, objects365_avocado 0.149, objects365_cucumber 0.119, \n",
            "Flute 0.902,objects365_flute 0.767, objects365_pen/pencil 0.149, objects365_carrot 0.079, objects365_scissors 0.079, coco_scissors 0.079, \n",
            "Butterfly 0.860,objects365_butterfly 0.860, coco_person 0.020, coco_umbrella 0.020, coco_tie 0.020, coco_frisbee 0.020, \n",
            "Washing machine 0.946,objects365_washing machine 0.945, coco_toilet 0.119, coco_oven 0.050, objects365_urinal 0.030, objects365_oven 0.015, \n",
            "Raccoon 0.939,coco_bear 0.889, objects365_bear 0.807, objects365_polar bear 0.297, objects365_cat 0.245, coco_cat 0.239, \n",
            "Segway 0.932,objects365_hoverboard 0.929, coco_person 0.172, objects365_person 0.161, objects365_trolley 0.015, \n",
            "Taco 0.881,objects365_spring rolls 0.364, coco_sandwich 0.325, objects365_plate 0.286, objects365_pie 0.238, coco_pizza 0.213, \n",
            "Jellyfish 0.767,objects365_jellyfish 0.774, objects365_starfish 0.020, \n",
            "Cake 0.630,coco_cake 0.828, objects365_cake 0.789, objects365_bread 0.153, objects365_plate 0.153, coco_dining table 0.081, \n",
            "Pen 0.737,objects365_pen/pencil 0.588, objects365_marker 0.223, coco_toothbrush 0.196, objects365_paint brush 0.089, coco_knife 0.085, \n",
            "Cannon 0.855,coco_fire hydrant 0.218, objects365_machinery vehicle 0.124, objects365_gun 0.059, objects365_fire truck 0.059, objects365_fire hydrant 0.059, \n",
            "Bread 0.360,objects365_bread 0.460, coco_donut 0.251, coco_sandwich 0.223, coco_cake 0.221, objects365_donut 0.119, \n",
            "Tree 0.360,\n",
            "Shellfish 0.352,objects365_shrimp 0.188, objects365_crab 0.168, objects365_lobster 0.099, \n",
            "Bed 0.850,objects365_bed 0.633, coco_bed 0.631, coco_couch 0.313, objects365_couch 0.304, coco_chair 0.017, \n",
            "Hamster 0.993,objects365_rabbit 0.805, coco_cat 0.092, objects365_cat 0.040, \n",
            "Hat 0.592,objects365_hat 0.664, coco_person 0.011, \n",
            "Toaster 1.000,objects365_toaster 1.000, objects365_rice cooker 1.000, objects365_printer 1.000, coco_toaster 1.000, \n",
            "Sombrero 0.779,objects365_hat 0.882, objects365_towel/napkin 0.059, objects365_glove 0.059, coco_person 0.051, coco_frisbee 0.030, \n",
            "Tiara 0.665,coco_scissors 0.079, objects365_hanger 0.079, objects365_trophy 0.079, objects365_necklace 0.071, objects365_butterfly 0.040, \n",
            "Bowl 0.575,coco_bowl 0.668, objects365_bowl 0.651, objects365_plate 0.121, objects365_cup 0.062, coco_cup 0.062, \n",
            "Dragonfly 1.000,objects365_butterfly 0.119, objects365_antelope 0.059, \n",
            "Moths and butterflies 0.837,objects365_butterfly 0.624, objects365_zebra 0.119, \n",
            "Antelope 0.849,objects365_antelope 0.656, objects365_deer 0.610, coco_cow 0.158, coco_sheep 0.130, \n",
            "Vegetable 0.411,objects365_tomato 0.110, coco_broccoli 0.042, coco_carrot 0.037, objects365_cabbage 0.035, objects365_green vegetables 0.029, \n",
            "Torch 0.835,coco_bottle 0.505, objects365_flashlight 0.505, \n",
            "Building 0.501,\n",
            "Power plugs and sockets 0.499,coco_remote 0.151, objects365_iron 0.030, \n",
            "Blender 0.925,objects365_blender 0.892, objects365_coffee machine 0.257, objects365_microscope 0.109, coco_cup 0.022, objects365_cup 0.022, \n",
            "Billiard table 0.949,objects365_desk 0.856, coco_dining table 0.816, objects365_cue 0.014, \n",
            "Cutting board 0.691,coco_dining table 0.590, objects365_cutting/chopping board 0.548, objects365_desk 0.307, objects365_cabbage 0.109, coco_refrigerator 0.109, \n",
            "Bronze sculpture 0.740,objects365_person 0.632, coco_person 0.404, objects365_lion 0.207, coco_horse 0.089, coco_elephant 0.079, \n",
            "Turtle 0.554,objects365_tortoise/turtle 0.566, objects365_seal 0.020, coco_elephant 0.013, \n",
            "Broccoli 0.641,coco_broccoli 0.694, objects365_broccoli 0.650, objects365_cucumber 0.017, objects365_pasta 0.015, \n",
            "Tiger 0.947,objects365_lion 0.515, objects365_cat 0.475, coco_cat 0.347, objects365_zebra 0.307, coco_zebra 0.178, \n",
            "Mirror 0.560,objects365_mirror 0.266, coco_car 0.096, objects365_car 0.061, objects365_suv 0.044, coco_clock 0.040, \n",
            "Bear 0.846,coco_bear 0.652, objects365_bear 0.398, objects365_polar bear 0.329, coco_teddy bear 0.257, objects365_teddy bear 0.251, \n",
            "Zucchini 0.460,objects365_cucumber 0.395, coco_banana 0.141, objects365_banana 0.076, coco_hot dog 0.020, objects365_hot dog 0.020, \n",
            "Dress 0.465,objects365_person 0.270, coco_person 0.242, coco_handbag 0.076, \n",
            "Volleyball 1.000,coco_sports ball 0.997, objects365_volleyball 0.984, objects365_soccer 0.218, objects365_american football 0.146, objects365_basketball 0.059, \n",
            "Guitar 0.825,objects365_guitar 0.845, objects365_cello 0.188, objects365_person 0.058, coco_person 0.056, \n",
            "Reptile 0.709,objects365_tortoise/turtle 0.192, \n",
            "Golf cart 1.000,coco_truck 0.424, objects365_tricycle 0.337, objects365_suv 0.119, objects365_trolley 0.119, coco_bus 0.059, \n",
            "Tart 0.803,coco_cake 0.572, objects365_egg tart 0.535, objects365_cake 0.421, objects365_bread 0.380, coco_pizza 0.365, \n",
            "Fedora 0.741,objects365_hat 0.966, coco_person 0.034, objects365_towel/napkin 0.020, objects365_person 0.019, \n",
            "Carnivore 0.883,coco_dog 0.614, objects365_dog 0.595, coco_cat 0.163, objects365_cat 0.162, coco_bear 0.114, \n",
            "Car 0.854,coco_car 0.840, objects365_car 0.720, objects365_suv 0.324, objects365_sports car 0.292, coco_truck 0.119, \n",
            "Lighthouse 0.992,objects365_street lights 0.033, \n",
            "Coffeemaker 0.947,objects365_blender 0.798, objects365_coffee machine 0.770, objects365_microscope 0.354, coco_oven 0.124, objects365_toaster 0.050, \n",
            "Food processor 0.798,objects365_blender 0.643, objects365_coffee machine 0.309, objects365_microscope 0.119, \n",
            "Truck 0.800,coco_truck 0.879, objects365_pickup truck 0.550, objects365_truck 0.342, objects365_suv 0.166, objects365_machinery vehicle 0.153, \n",
            "Bookcase 0.560,objects365_cabinet/shelf 0.542, \n",
            "Surfboard 0.775,coco_surfboard 0.794, objects365_surfboard 0.775, objects365_boat 0.122, coco_boat 0.058, objects365_snowboard 0.030, \n",
            "Footwear 0.656,objects365_sneakers 0.535, objects365_high heels 0.077, \n",
            "Bench 0.337,coco_bench 0.673, objects365_bench 0.662, coco_chair 0.325, objects365_chair 0.256, objects365_desk 0.020, \n",
            "Necklace 0.847,objects365_necklace 0.674, coco_tie 0.190, coco_scissors 0.069, objects365_comb 0.040, coco_frisbee 0.040, \n",
            "Flower 0.511,objects365_flower 0.284, coco_umbrella 0.073, \n",
            "Radish 0.450,coco_carrot 0.095, objects365_green vegetables 0.040, objects365_radish 0.040, objects365_carrot 0.037, objects365_cucumber 0.026, \n",
            "Marine mammal 0.614,objects365_dolphin 0.355, objects365_seal 0.265, coco_bear 0.133, objects365_polar bear 0.059, \n",
            "Frying pan 0.620,objects365_pot/pan 0.432, coco_bowl 0.213, objects365_bowl 0.168, objects365_plate 0.117, objects365_pizza 0.089, \n",
            "Tap 0.582,objects365_faucet 0.664, \n",
            "Peach 0.538,coco_apple 0.643, objects365_apple 0.439, objects365_peach 0.406, objects365_pomegranate 0.228, coco_orange 0.208, \n",
            "Knife 0.922,coco_knife 0.869, objects365_knife 0.851, objects365_saw 0.079, objects365_cutting/chopping board 0.079, coco_snowboard 0.059, \n",
            "Handbag 0.638,objects365_handbag 0.786, coco_handbag 0.729, coco_suitcase 0.304, objects365_suitcase 0.166, objects365_luggage 0.143, \n",
            "Laptop 0.716,coco_laptop 0.785, objects365_laptop 0.764, objects365_keyboard 0.148, coco_keyboard 0.117, objects365_tablet 0.105, \n",
            "Tent 0.483,objects365_tent 0.460, objects365_umbrella 0.089, coco_umbrella 0.067, coco_bed 0.030, objects365_bed 0.030, \n",
            "Ambulance 0.867,objects365_ambulance 0.863, coco_truck 0.631, objects365_truck 0.172, objects365_fire truck 0.109, objects365_van 0.108, \n",
            "Christmas tree 0.182,coco_teddy bear 0.034, objects365_teddy bear 0.022, objects365_ice cream 0.020, objects365_toy 0.016, \n",
            "Eagle 0.939,objects365_eagle 0.970, coco_bird 0.960, objects365_wild bird 0.118, objects365_pigeon 0.040, coco_frisbee 0.020, \n",
            "Limousine 0.999,coco_car 0.716, coco_truck 0.412, objects365_sports car 0.376, objects365_car 0.373, objects365_pickup truck 0.303, \n",
            "Kitchen & dining room table 0.399,coco_dining table 0.570, objects365_dining table 0.537, objects365_desk 0.338, coco_chair 0.038, objects365_chair 0.037, \n",
            "Polar bear 0.983,coco_bear 0.979, objects365_polar bear 0.945, objects365_bear 0.277, \n",
            "Tower 0.522,\n",
            "Football 0.874,coco_sports ball 0.923, objects365_soccer 0.817, objects365_volleyball 0.446, objects365_american football 0.111, objects365_bathtub 0.020, \n",
            "Willow 0.600,\n",
            "Human head 0.421,objects365_hat 0.075, coco_person 0.033, objects365_person 0.026, \n",
            "Stop sign 1.000,coco_stop sign 1.000, objects365_stop sign 1.000, \n",
            "Banana 0.616,coco_banana 0.681, objects365_banana 0.649, \n",
            "Mixer 0.990,objects365_blender 0.980, objects365_coffee machine 0.505, objects365_microscope 0.079, \n",
            "Binoculars 0.553,objects365_binoculars 0.404, coco_hair drier 0.287, coco_fire hydrant 0.287, objects365_fire hydrant 0.287, objects365_electric drill 0.149, \n",
            "Dessert 0.531,coco_cake 0.405, objects365_cake 0.280, coco_donut 0.145, objects365_bread 0.129, objects365_egg tart 0.119, \n",
            "Bee 0.850,objects365_butterfly 0.729, objects365_crab 0.030, objects365_antelope 0.020, objects365_zebra 0.020, \n",
            "Chair 0.578,coco_chair 0.642, objects365_chair 0.618, coco_dining table 0.010, \n",
            "Wood-burning stove 0.778,coco_oven 0.262, objects365_oven 0.109, objects365_air conditioner 0.040, objects365_cabinet/shelf 0.018, objects365_mirror 0.013, \n",
            "Flowerpot 0.560,objects365_vase 0.537, coco_vase 0.179, coco_potted plant 0.115, objects365_potted plant 0.087, \n",
            "Beaker 0.000,\n",
            "Oyster 0.208,objects365_scallop 0.219, \n",
            "Woodpecker 0.957,coco_bird 0.960, objects365_wild bird 0.845, objects365_penguin 0.337, objects365_eagle 0.257, objects365_parrot 0.109, \n",
            "Harp 0.992,objects365_person 0.158, coco_person 0.118, objects365_cello 0.059, coco_baseball bat 0.059, objects365_guitar 0.059, \n",
            "Bathtub 0.885,objects365_bathtub 0.574, coco_sink 0.161, coco_bed 0.119, coco_bowl 0.059, coco_toilet 0.059, \n",
            "Wall clock 0.810,objects365_clock 0.738, coco_clock 0.708, objects365_cabinet/shelf 0.223, objects365_plate 0.059, coco_dining table 0.059, \n",
            "Sports uniform 0.336,coco_person 0.528, objects365_person 0.525, \n",
            "Rhinoceros 0.988,coco_elephant 0.776, objects365_pig 0.742, coco_cow 0.545, objects365_elephant 0.454, objects365_cow 0.257, \n",
            "Beehive 0.568,objects365_storage box 0.025, \n",
            "Cupboard 0.636,objects365_cabinet/shelf 0.523, \n",
            "Chicken 0.872,coco_bird 0.887, objects365_chicken 0.887, coco_teddy bear 0.026, objects365_teddy bear 0.025, coco_sheep 0.020, \n",
            "Man 0.737,objects365_person 0.720, coco_person 0.718, \n",
            "Blue jay 0.781,objects365_wild bird 0.931, coco_bird 0.926, objects365_parrot 0.257, objects365_penguin 0.139, objects365_eagle 0.059, \n",
            "Cucumber 0.458,objects365_cucumber 0.399, objects365_canned 0.065, \n",
            "Balloon 0.543,objects365_balloon 0.395, objects365_hotair balloon 0.295, coco_kite 0.129, objects365_toy 0.081, \n",
            "Kite 0.841,objects365_kite 0.815, coco_kite 0.767, objects365_flag 0.020, \n",
            "Fireplace 0.606,coco_oven 0.138, objects365_oven 0.066, objects365_lantern 0.030, coco_microwave 0.030, objects365_pumpkin 0.030, \n",
            "Lantern 0.809,objects365_lantern 0.618, objects365_lamp 0.099, objects365_pumpkin 0.087, coco_umbrella 0.040, objects365_towel/napkin 0.040, \n",
            "Missile 0.709,coco_airplane 0.320, objects365_airplane 0.305, objects365_helicopter 0.046, \n",
            "Book 0.347,coco_book 0.287, objects365_book 0.156, \n",
            "Spoon 0.663,coco_spoon 0.676, objects365_spoon 0.657, objects365_shovel 0.086, objects365_measuring cup 0.050, coco_fork 0.044, \n",
            "Grapefruit 0.562,coco_orange 0.619, objects365_orange 0.495, objects365_tangerine 0.441, coco_apple 0.205, objects365_lemon 0.109, \n",
            "Squirrel 0.926,coco_bear 0.286, objects365_monkey 0.260, objects365_rabbit 0.119, coco_sheep 0.089, coco_cat 0.069, \n",
            "Orange 0.724,coco_orange 0.766, objects365_orange 0.684, objects365_tangerine 0.475, objects365_lemon 0.118, \n",
            "Coat 0.561,coco_person 0.491, objects365_person 0.475, objects365_backpack 0.196, coco_backpack 0.162, coco_suitcase 0.078, \n",
            "Punching bag 0.000,\n",
            "Zebra 0.946,coco_zebra 0.947, objects365_zebra 0.947, coco_horse 0.030, objects365_donkey 0.030, objects365_deer 0.015, \n",
            "Billboard 0.588,objects365_traffic sign 0.263, objects365_blackboard/whiteboard 0.119, coco_tv 0.095, objects365_tv 0.057, coco_stop sign 0.030, \n",
            "Bicycle 0.734,coco_bicycle 0.772, objects365_bicycle 0.752, objects365_person 0.033, coco_person 0.028, \n",
            "Door handle 0.337,objects365_urinal 0.087, objects365_target 0.082, objects365_lion 0.050, coco_elephant 0.030, coco_knife 0.030, \n",
            "Mechanical fan 0.834,objects365_fan 0.727, coco_scissors 0.040, coco_toilet 0.040, objects365_washing machine 0.040, objects365_horn 0.040, \n",
            "Ring binder 0.000,\n",
            "Table 0.550,objects365_desk 0.471, coco_dining table 0.451, objects365_dining table 0.197, objects365_coffee table 0.107, coco_chair 0.011, \n",
            "Parrot 0.826,coco_bird 0.957, objects365_parrot 0.844, objects365_wild bird 0.225, objects365_eagle 0.149, objects365_chicken 0.099, \n",
            "Sock 0.948,coco_tie 0.340, objects365_glove 0.099, coco_person 0.035, objects365_boots 0.035, \n",
            "Vase 0.605,coco_vase 0.765, objects365_vase 0.632, objects365_tea pot 0.214, coco_bottle 0.040, objects365_bottle 0.037, \n",
            "Weapon 0.507,objects365_gun 0.236, coco_knife 0.102, objects365_knife 0.095, \n",
            "Shotgun 0.833,objects365_gun 0.727, objects365_chainsaw 0.040, objects365_saw 0.033, objects365_pliers 0.020, objects365_guitar 0.020, \n",
            "Glasses 0.789,objects365_glasses 0.884, \n",
            "Seahorse 0.768,objects365_shark 0.653, objects365_fish 0.032, \n",
            "Belt 0.776,objects365_belt 0.505, objects365_suitcase 0.218, coco_suitcase 0.183, objects365_handbag 0.093, objects365_keyboard 0.079, \n",
            "Watercraft 0.706,coco_boat 0.699, objects365_boat 0.558, objects365_ship 0.229, objects365_sailboat 0.176, \n",
            "Window 0.276,\n",
            "Giraffe 0.921,coco_giraffe 0.950, objects365_giraffe 0.950, \n",
            "Lion 0.966,objects365_lion 0.893, coco_cat 0.149, objects365_cat 0.149, coco_elephant 0.129, coco_bear 0.109, \n",
            "Tire 0.743,\n",
            "Vehicle 0.781,coco_car 0.542, objects365_car 0.464, objects365_suv 0.241, objects365_sports car 0.157, coco_truck 0.154, \n",
            "Canoe 0.787,objects365_boat 0.823, coco_boat 0.779, objects365_paddle 0.025, \n",
            "Tie 0.880,coco_tie 0.949, objects365_tie 0.900, \n",
            "Shelf 0.092,objects365_cabinet/shelf 0.186, \n",
            "Picture frame 0.632,objects365_picture/frame 0.615, objects365_mirror 0.158, coco_tv 0.037, objects365_book 0.028, objects365_person 0.021, \n",
            "Printer 0.997,objects365_printer 0.978, coco_suitcase 0.158, coco_oven 0.158, coco_laptop 0.095, objects365_treadmill 0.059, \n",
            "Human leg 0.258,coco_person 0.011, \n",
            "Boat 0.723,coco_boat 0.748, objects365_boat 0.586, objects365_ship 0.256, objects365_sailboat 0.201, \n",
            "Slow cooker 1.000,objects365_pot/pan 0.505, objects365_rice cooker 0.505, coco_oven 0.505, \n",
            "Croissant 0.512,objects365_bread 0.656, coco_donut 0.150, \n",
            "Candle 0.619,objects365_candle 0.547, objects365_lamp 0.051, coco_cup 0.042, objects365_bowl 0.040, coco_bowl 0.040, \n",
            "Pancake 0.772,objects365_egg tart 0.595, objects365_pie 0.430, coco_pizza 0.364, objects365_bread 0.353, coco_cake 0.176, \n",
            "Pillow 0.757,objects365_pillow 0.739, objects365_towel/napkin 0.021, coco_suitcase 0.020, \n",
            "Coin 0.939,coco_clock 0.335, objects365_CD 0.075, objects365_picture/frame 0.069, objects365_clock 0.050, objects365_plate 0.030, \n",
            "Stretcher 0.752,objects365_bed 0.505, coco_bed 0.505, objects365_trolley 0.257, \n",
            "Sandal 0.820,objects365_high heels 0.643, objects365_sandals 0.276, objects365_slippers 0.206, objects365_leather shoes 0.061, \n",
            "Woman 0.679,objects365_person 0.566, coco_person 0.517, \n",
            "Stairs 0.436,objects365_radiator 0.197, coco_bench 0.062, objects365_ladder 0.037, objects365_bench 0.019, objects365_air conditioner 0.017, \n",
            "Harpsichord 0.998,objects365_piano 0.884, objects365_treadmill 0.099, objects365_person 0.040, coco_laptop 0.040, coco_suitcase 0.040, \n",
            "Stool 0.823,objects365_stool 0.751, coco_chair 0.675, objects365_chair 0.191, objects365_desk 0.157, objects365_coffee table 0.133, \n",
            "Bus 0.884,coco_bus 0.901, objects365_bus 0.886, objects365_ambulance 0.108, coco_truck 0.105, objects365_van 0.044, \n",
            "Suitcase 0.751,coco_suitcase 0.762, objects365_suitcase 0.628, objects365_luggage 0.594, objects365_desk 0.079, objects365_pencil case 0.040, \n",
            "Human mouth 0.449,\n",
            "Juice 0.772,coco_cup 0.656, objects365_cup 0.650, objects365_wine glass 0.053, \n",
            "Skull 0.681,objects365_pig 0.139, coco_vase 0.109, objects365_plate 0.069, objects365_clock 0.040, objects365_helmet 0.040, \n",
            "Door 0.322,objects365_cabinet/shelf 0.015, \n",
            "Violin 0.837,objects365_cello 0.753, objects365_violin 0.382, objects365_person 0.252, coco_person 0.195, objects365_guitar 0.040, \n",
            "Chopsticks 0.747,objects365_chopsticks 0.883, coco_fork 0.220, coco_knife 0.069, coco_spoon 0.056, objects365_spoon 0.050, \n",
            "Digital clock 0.856,coco_clock 0.618, objects365_clock 0.347, coco_microwave 0.129, objects365_scissors 0.129, coco_remote 0.129, \n",
            "Sunflower 0.800,objects365_flower 0.245, coco_umbrella 0.045, \n",
            "Leopard 0.998,objects365_cat 0.304, objects365_giraffe 0.297, coco_cat 0.243, objects365_lion 0.123, coco_giraffe 0.091, \n",
            "Bell pepper 0.359,objects365_pepper 0.352, oid_Bell pepper 0.359, \n",
            "Harbor seal 0.955,objects365_seal 0.910, coco_bear 0.138, coco_cow 0.050, objects365_pig 0.030, objects365_shark 0.030, \n",
            "Snake 0.927,objects365_lobster 0.050, objects365_tortoise/turtle 0.040, coco_carrot 0.020, objects365_bear 0.020, \n",
            "Sewing machine 0.977,objects365_microscope 0.353, objects365_chainsaw 0.119, objects365_desk 0.091, objects365_telephone 0.079, objects365_printer 0.079, \n",
            "Goose 0.667,coco_bird 0.794, objects365_goose 0.550, objects365_duck 0.390, objects365_wild bird 0.264, objects365_swan 0.210, \n",
            "Helicopter 0.885,objects365_helicopter 0.891, coco_airplane 0.610, objects365_airplane 0.196, \n",
            "Seat belt 0.079,objects365_suitcase 0.119, coco_suitcase 0.119, objects365_luggage 0.119, objects365_handbag 0.119, \n",
            "Coffee cup 0.850,coco_cup 0.866, objects365_cup 0.852, objects365_plate 0.135, coco_bowl 0.049, objects365_bowl 0.038, \n",
            "Microwave oven 0.873,coco_microwave 0.701, objects365_microwave 0.634, coco_oven 0.558, objects365_oven 0.507, objects365_toaster 0.069, \n",
            "Hot dog 0.873,objects365_hot dog 0.871, coco_hot dog 0.809, coco_sandwich 0.349, objects365_hamburger 0.129, objects365_sandwich 0.129, \n",
            "Countertop 0.393,coco_dining table 0.080, objects365_desk 0.061, coco_sink 0.032, objects365_dining table 0.032, objects365_sink 0.021, \n",
            "Serving tray 1.000,objects365_plate 1.000, coco_dining table 0.574, coco_frisbee 0.149, objects365_frisbee 0.149, objects365_desk 0.149, \n",
            "Dog bed 0.945,coco_bed 0.840, coco_dog 0.404, objects365_dog 0.377, objects365_bed 0.376, coco_couch 0.376, \n",
            "Beer 0.779,coco_cup 0.532, objects365_cup 0.530, coco_bottle 0.182, objects365_bottle 0.151, objects365_canned 0.103, \n",
            "Sunglasses 0.734,objects365_glasses 0.859, \n",
            "Golf ball 0.753,objects365_golf ball 0.789, coco_sports ball 0.287, \n",
            "Waffle 0.925,objects365_egg tart 0.528, coco_pizza 0.218, objects365_pie 0.139, objects365_cake 0.126, coco_cake 0.121, \n",
            "Palm tree 0.547,\n",
            "Trumpet 0.704,objects365_trumpet 0.455, objects365_trombone 0.310, objects365_french horn 0.227, objects365_tuba 0.215, objects365_saxophone 0.117, \n",
            "Ruler 0.747,\n",
            "Helmet 0.708,objects365_helmet 0.740, \n",
            "Ladder 0.589,objects365_ladder 0.614, objects365_tripod 0.079, coco_chair 0.063, coco_skateboard 0.040, objects365_gun 0.040, \n",
            "Office building 0.702,objects365_desk 0.027, objects365_person 0.021, coco_person 0.020, objects365_air conditioner 0.020, coco_refrigerator 0.015, \n",
            "Tablet computer 0.908,objects365_tablet 0.789, coco_laptop 0.654, objects365_laptop 0.580, coco_cell phone 0.414, objects365_tv 0.386, \n",
            "Toilet paper 1.000,objects365_paper towel 1.000, \n",
            "Pomegranate 0.751,coco_apple 0.743, objects365_apple 0.564, objects365_pomegranate 0.497, coco_orange 0.069, objects365_watermelon 0.069, \n",
            "Skirt 0.708,coco_suitcase 0.040, coco_bed 0.039, objects365_pillow 0.037, coco_umbrella 0.036, coco_tie 0.021, \n",
            "Gas stove 0.502,objects365_gas stove 0.430, coco_oven 0.418, objects365_electronic stove and gas stove 0.218, coco_pizza 0.050, objects365_telephone 0.050, \n",
            "Cookie 0.674,objects365_cookies 0.612, coco_cake 0.549, coco_donut 0.336, objects365_egg tart 0.322, objects365_cake 0.134, \n",
            "Cart 0.650,objects365_rickshaw 0.464, objects365_tricycle 0.421, objects365_carriage 0.361, objects365_trolley 0.180, \n",
            "Raven 0.534,coco_bird 0.679, objects365_wild bird 0.607, objects365_eagle 0.250, objects365_pigeon 0.160, objects365_chicken 0.050, \n",
            "Egg 0.423,objects365_egg 0.431, coco_sports ball 0.165, \n",
            "Burrito 0.776,objects365_spring rolls 0.706, coco_sandwich 0.569, objects365_pie 0.549, coco_hot dog 0.181, objects365_bread 0.156, \n",
            "Goat 0.911,coco_sheep 0.826, objects365_sheep 0.695, objects365_deer 0.238, objects365_antelope 0.228, objects365_llama 0.161, \n",
            "Kitchen knife 0.876,coco_knife 0.918, objects365_knife 0.906, objects365_cutting/chopping board 0.086, coco_snowboard 0.040, objects365_snowboard 0.040, \n",
            "Skateboard 0.845,coco_skateboard 0.848, objects365_skateboard 0.802, objects365_skating and skiing shoes 0.050, objects365_motorcycle 0.020, coco_motorcycle 0.020, \n",
            "Salt and pepper shakers 1.000,objects365_bottle 0.901, coco_bottle 0.901, \n",
            "Lynx 0.995,coco_cat 0.864, objects365_cat 0.857, objects365_lion 0.111, objects365_giraffe 0.069, coco_bear 0.040, \n",
            "Boot 0.783,objects365_boots 0.743, objects365_high heels 0.215, objects365_leather shoes 0.062, objects365_sneakers 0.040, \n",
            "Platter 0.624,objects365_plate 0.816, coco_dining table 0.128, coco_bowl 0.087, coco_cake 0.029, coco_pizza 0.028, \n",
            "Ski 0.479,coco_skis 0.464, objects365_skis 0.462, objects365_snowboard 0.166, coco_snowboard 0.141, objects365_hockey 0.022, \n",
            "Swimwear 0.354,\n",
            "Swimming pool 0.683,coco_bed 0.182, objects365_person 0.053, coco_person 0.046, \n",
            "Drinking straw 0.714,objects365_paint brush 0.119, objects365_candle 0.119, objects365_chopsticks 0.119, \n",
            "Wrench 1.000,objects365_pliers 1.000, objects365_saw 0.500, \n",
            "Drum 0.427,objects365_drum 0.455, \n",
            "Ant 0.347,objects365_butterfly 0.066, objects365_grapes 0.040, \n",
            "Human ear 0.454,\n",
            "Headphones 0.657,objects365_head phone 0.452, coco_hair drier 0.356, objects365_hair drier 0.348, objects365_helmet 0.059, objects365_camera 0.059, \n",
            "Fountain 0.546,\n",
            "Bird 0.790,coco_bird 0.800, objects365_wild bird 0.474, objects365_goose 0.169, objects365_eagle 0.142, objects365_duck 0.128, \n",
            "Jeans 0.627,coco_person 0.041, objects365_person 0.033, \n",
            "Television 0.838,coco_tv 0.937, objects365_tv 0.928, objects365_bus 0.030, coco_bus 0.030, coco_car 0.030, \n",
            "Crab 0.976,objects365_crab 0.951, objects365_lobster 0.475, objects365_shrimp 0.329, coco_dining table 0.020, \n",
            "Microphone 0.568,objects365_microphone 0.577, \n",
            "Home appliance 0.388,coco_oven 0.150, objects365_blender 0.101, objects365_oven 0.090, objects365_tea pot 0.070, \n",
            "Snowplow 0.902,objects365_machinery vehicle 0.586, coco_truck 0.398, objects365_truck 0.012, \n",
            "Beetle 0.797,\n",
            "Artichoke 0.590,coco_broccoli 0.347, objects365_cabbage 0.188, coco_cake 0.139, objects365_bread 0.099, objects365_red cabbage 0.050, \n",
            "Jet ski 0.832,objects365_boat 0.749, coco_boat 0.737, coco_surfboard 0.083, objects365_suv 0.059, coco_truck 0.059, \n",
            "Stationary bicycle 0.355,objects365_treadmill 0.297, coco_toilet 0.119, coco_person 0.059, objects365_person 0.059, \n",
            "Human hair 0.395,objects365_hat 0.049, coco_person 0.018, objects365_person 0.015, \n",
            "Brown bear 0.934,coco_bear 0.930, objects365_bear 0.921, coco_dog 0.119, objects365_cat 0.059, coco_cat 0.059, \n",
            "Starfish 0.958,objects365_starfish 0.785, objects365_jellyfish 0.279, coco_elephant 0.059, objects365_elephant 0.059, \n",
            "Fork 0.693,coco_fork 0.703, objects365_fork 0.690, objects365_spoon 0.065, objects365_shovel 0.059, coco_toothbrush 0.050, \n",
            "Lobster 0.737,objects365_crab 0.508, objects365_lobster 0.506, objects365_shrimp 0.363, \n",
            "Corded phone 0.848,objects365_telephone 0.868, objects365_calculator 0.149, coco_handbag 0.149, coco_cell phone 0.149, objects365_handbag 0.149, \n",
            "Drink 0.569,objects365_cup 0.239, coco_cup 0.236, coco_bottle 0.111, objects365_bottle 0.098, objects365_wine glass 0.073, \n",
            "Saucer 0.665,objects365_plate 0.843, coco_dining table 0.173, coco_cup 0.089, coco_bowl 0.041, objects365_spoon 0.032, \n",
            "Carrot 0.321,coco_carrot 0.515, objects365_carrot 0.365, \n",
            "Insect 0.778,objects365_butterfly 0.294, \n",
            "Clock 0.627,coco_clock 0.726, objects365_clock 0.676, objects365_cabinet/shelf 0.077, objects365_scissors 0.020, coco_scissors 0.020, \n",
            "Castle 0.707,objects365_toy 0.015, \n",
            "Tennis racket 0.960,coco_tennis racket 0.960, objects365_tennis racket 0.960, objects365_scissors 0.040, coco_scissors 0.040, \n",
            "Ceiling fan 1.000,objects365_fan 0.893, coco_scissors 0.099, objects365_lamp 0.054, \n",
            "Asparagus 0.235,objects365_asparagus 0.236, objects365_green vegetables 0.089, objects365_green onion 0.050, coco_sandwich 0.025, coco_broccoli 0.012, \n",
            "Jaguar 0.939,objects365_cat 0.308, objects365_giraffe 0.283, coco_cat 0.234, objects365_lion 0.109, coco_giraffe 0.087, \n",
            "Musical instrument 0.589,objects365_piano 0.133, objects365_guitar 0.130, objects365_cello 0.083, objects365_person 0.033, coco_person 0.027, \n",
            "Train 0.828,coco_train 0.852, objects365_train 0.827, objects365_bus 0.121, coco_bus 0.103, coco_truck 0.027, \n",
            "Cat 0.911,coco_cat 0.942, objects365_cat 0.940, \n",
            "Rifle 0.709,objects365_gun 0.767, \n",
            "Dumbbell 0.653,objects365_dumbbell 0.864, \n",
            "Mobile phone 0.869,coco_cell phone 0.879, objects365_cell phone 0.857, objects365_tablet 0.559, coco_laptop 0.118, objects365_laptop 0.094, \n",
            "Taxi 0.721,coco_car 0.299, objects365_car 0.192, objects365_sports car 0.092, objects365_suv 0.013, \n",
            "Shower 0.232,objects365_faucet 0.269, objects365_hair drier 0.119, coco_sink 0.040, \n",
            "Pitcher 0.947,objects365_tea pot 0.950, coco_vase 0.687, objects365_vase 0.337, coco_cup 0.102, objects365_cup 0.061, \n",
            "Lemon 0.675,coco_orange 0.680, objects365_lemon 0.647, objects365_orange 0.347, objects365_tangerine 0.275, \n",
            "Invertebrate 0.453,objects365_butterfly 0.138, objects365_shrimp 0.061, \n",
            "Turkey 0.554,coco_bird 0.702, objects365_chicken 0.572, objects365_pig 0.119, objects365_bread 0.040, objects365_tortoise/turtle 0.040, \n",
            "High heels 0.706,objects365_high heels 0.636, objects365_boots 0.181, objects365_sandals 0.055, objects365_leather shoes 0.023, \n",
            "Bust 1.000,objects365_person 0.965, coco_person 0.710, objects365_lion 0.089, objects365_hat 0.017, \n",
            "Elephant 0.890,objects365_elephant 0.889, coco_elephant 0.884, coco_teddy bear 0.020, objects365_teddy bear 0.020, \n",
            "Scarf 0.411,coco_person 0.240, objects365_person 0.236, coco_tie 0.215, objects365_hat 0.076, objects365_facial mask 0.063, \n",
            "Barrel 0.731,objects365_barrel/bucket 0.715, objects365_trash bin/can 0.143, coco_toilet 0.071, objects365_suitcase 0.050, coco_suitcase 0.050, \n",
            "Trombone 0.766,objects365_trumpet 0.684, objects365_trombone 0.545, objects365_person 0.043, coco_person 0.042, \n",
            "Pumpkin 0.938,objects365_pumpkin 0.931, objects365_watermelon 0.050, coco_orange 0.030, objects365_hamimelon 0.030, objects365_avocado 0.030, \n",
            "Box 0.438,objects365_storage box 0.368, coco_book 0.097, coco_suitcase 0.064, objects365_cabinet/shelf 0.060, \n",
            "Tomato 0.520,objects365_tomato 0.566, coco_carrot 0.036, \n",
            "Frog 0.945,objects365_lobster 0.089, objects365_toy 0.073, objects365_crab 0.069, objects365_person 0.030, objects365_starfish 0.030, \n",
            "Bidet 0.688,coco_toilet 0.874, objects365_toilet 0.608, objects365_urinal 0.399, coco_sink 0.202, objects365_sink 0.194, \n",
            "Human face 0.827,objects365_glasses 0.032, coco_person 0.016, objects365_person 0.014, \n",
            "Houseplant 0.492,coco_potted plant 0.537, objects365_potted plant 0.424, objects365_flower 0.190, objects365_vase 0.018, \n",
            "Van 0.858,coco_truck 0.740, objects365_van 0.615, objects365_ambulance 0.548, objects365_truck 0.258, objects365_suv 0.214, \n",
            "Shark 0.781,objects365_shark 0.656, objects365_dolphin 0.462, objects365_seal 0.040, coco_surfboard 0.040, objects365_fish 0.020, \n",
            "Ice cream 0.567,coco_cake 0.653, objects365_cake 0.512, objects365_ice cream 0.411, objects365_bread 0.063, objects365_cup 0.038, \n",
            "Swim cap 0.799,objects365_hat 0.536, objects365_helmet 0.069, \n",
            "Falcon 0.879,coco_bird 0.965, objects365_eagle 0.934, objects365_parrot 0.079, objects365_wild bird 0.067, objects365_pigeon 0.020, \n",
            "Ostrich 0.981,coco_bird 0.977, objects365_llama 0.090, objects365_eagle 0.040, \n",
            "Handgun 0.980,objects365_gun 0.567, objects365_chainsaw 0.050, objects365_saw 0.050, coco_knife 0.012, \n",
            "Whiteboard 0.879,objects365_blackboard/whiteboard 0.769, coco_refrigerator 0.389, coco_stop sign 0.109, coco_tv 0.031, \n",
            "Lizard 0.892,objects365_lobster 0.350, \n",
            "Pasta 0.948,objects365_noodles 0.845, objects365_pasta 0.830, coco_bowl 0.709, objects365_plate 0.362, coco_pizza 0.128, \n",
            "Snowmobile 1.000,\n",
            "Light bulb 0.596,objects365_lamp 0.226, objects365_lantern 0.154, coco_wine glass 0.050, objects365_wine glass 0.050, objects365_cup 0.050, \n",
            "Window blind 0.795,objects365_air conditioner 0.232, objects365_radiator 0.129, objects365_mirror 0.094, objects365_lamp 0.017, \n",
            "Muffin 0.630,coco_cake 0.756, objects365_cake 0.616, objects365_egg tart 0.268, objects365_cookies 0.149, objects365_plate 0.010, \n",
            "Pretzel 0.475,coco_donut 0.398, objects365_donut 0.384, objects365_hot dog 0.238, coco_hot dog 0.119, objects365_plate 0.059, \n",
            "Computer monitor 0.606,objects365_tv 0.713, coco_tv 0.693, coco_laptop 0.158, objects365_laptop 0.124, objects365_tablet 0.089, \n",
            "Horn 0.860,objects365_trumpet 0.348, objects365_french horn 0.343, objects365_trombone 0.339, objects365_saxophone 0.302, objects365_tuba 0.230, \n",
            "Furniture 0.501,coco_chair 0.169, objects365_desk 0.159, objects365_chair 0.148, coco_dining table 0.139, objects365_person 0.011, \n",
            "Sandwich 0.832,coco_sandwich 0.831, objects365_hamburger 0.668, objects365_sandwich 0.467, objects365_hot dog 0.286, objects365_bread 0.172, \n",
            "Fox 1.000,objects365_cat 0.723, coco_cat 0.653, coco_bear 0.307, objects365_bear 0.257, coco_dog 0.208, \n",
            "Convenience store 0.771,objects365_cabinet/shelf 0.124, coco_refrigerator 0.113, objects365_refrigerator 0.066, coco_dining table 0.042, objects365_person 0.021, \n",
            "Fish 0.624,objects365_fish 0.429, objects365_shark 0.159, objects365_goldfish 0.119, \n",
            "Fruit 0.530,coco_apple 0.152, coco_orange 0.134, objects365_tomato 0.108, objects365_cherry 0.066, objects365_lemon 0.053, \n",
            "Earrings 0.566,coco_scissors 0.262, objects365_scissors 0.117, objects365_comb 0.069, objects365_necklace 0.047, coco_clock 0.046, \n",
            "Curtain 0.571,objects365_radiator 0.079, objects365_towel/napkin 0.047, objects365_mirror 0.046, coco_handbag 0.020, objects365_blackboard/whiteboard 0.020, \n",
            "Grape 0.316,objects365_grapes 0.241, \n",
            "Sofa bed 0.896,objects365_couch 0.883, coco_couch 0.872, coco_chair 0.081, objects365_chair 0.059, coco_person 0.013, \n",
            "Horse 0.851,coco_horse 0.875, objects365_horse 0.856, objects365_donkey 0.247, objects365_carriage 0.082, objects365_person 0.012, \n",
            "Luggage and bags 0.597,objects365_handbag 0.488, coco_suitcase 0.437, coco_handbag 0.391, objects365_luggage 0.276, coco_backpack 0.235, \n",
            "Desk 0.277,objects365_desk 0.410, coco_dining table 0.135, objects365_cabinet/shelf 0.101, objects365_nightstand 0.076, \n",
            "Crutch 1.000,\n",
            "Bicycle helmet 0.621,objects365_helmet 0.743, \n",
            "Tick 1.000,\n",
            "Airplane 0.909,coco_airplane 0.917, objects365_airplane 0.910, objects365_helicopter 0.078, \n",
            "Canary 0.993,coco_bird 0.994, objects365_wild bird 0.857, objects365_parrot 0.317, objects365_pigeon 0.059, \n",
            "Spatula 1.000,coco_spoon 1.000, objects365_shovel 1.000, objects365_spoon 0.505, objects365_chopsticks 0.257, \n",
            "Watch 0.634,coco_clock 0.749, objects365_clock 0.552, coco_cell phone 0.192, objects365_watch 0.149, objects365_radio 0.109, \n",
            "Lily 0.486,objects365_flower 0.230, coco_umbrella 0.103, \n",
            "Kitchen appliance 0.463,coco_oven 0.196, objects365_blender 0.159, objects365_oven 0.136, objects365_coffee machine 0.131, coco_refrigerator 0.113, \n",
            "Filing cabinet 0.803,objects365_cabinet/shelf 0.522, objects365_nightstand 0.435, coco_oven 0.035, objects365_oven 0.020, objects365_refrigerator 0.015, \n",
            "Aircraft 0.831,coco_airplane 0.819, objects365_airplane 0.766, objects365_helicopter 0.178, \n",
            "Cake stand 0.865,coco_cake 0.402, objects365_cake 0.337, coco_dining table 0.112, objects365_plate 0.112, \n",
            "Candy 0.131,coco_cake 0.111, objects365_cake 0.066, objects365_candy 0.045, \n",
            "Sink 0.712,coco_sink 0.759, objects365_sink 0.750, objects365_urinal 0.059, coco_toilet 0.035, objects365_bathtub 0.029, \n",
            "Mouse 0.954,objects365_rabbit 0.602, coco_bear 0.149, coco_cat 0.054, objects365_polar bear 0.040, objects365_monkey 0.020, \n",
            "Wine 0.488,coco_bottle 0.258, objects365_bottle 0.246, objects365_wine glass 0.082, coco_wine glass 0.074, objects365_cup 0.054, \n",
            "Wheelchair 0.729,objects365_wheelchair 0.684, coco_bicycle 0.136, objects365_bicycle 0.115, objects365_person 0.052, coco_person 0.039, \n",
            "Goldfish 0.800,objects365_goldfish 0.796, objects365_fish 0.173, \n",
            "Refrigerator 0.911,coco_refrigerator 0.881, objects365_refrigerator 0.878, objects365_washing machine 0.109, objects365_cabinet/shelf 0.019, \n",
            "French fries 0.820,objects365_french fries 0.775, coco_bowl 0.114, coco_dining table 0.105, objects365_plate 0.099, coco_hot dog 0.043, \n",
            "Drawer 0.487,objects365_cabinet/shelf 0.027, \n",
            "Treadmill 0.804,objects365_treadmill 0.738, objects365_mirror 0.168, objects365_printer 0.168, \n",
            "Picnic basket 0.955,objects365_basket 0.669, coco_chair 0.183, coco_frisbee 0.109, objects365_chair 0.109, objects365_bed 0.109, \n",
            "Dice 0.968,objects365_toy 0.927, objects365_radio 0.050, \n",
            "Cabbage 0.763,objects365_cabbage 0.664, coco_broccoli 0.274, objects365_green vegetables 0.261, objects365_lettuce 0.079, objects365_broccoli 0.079, \n",
            "Football helmet 0.622,objects365_helmet 0.623, \n",
            "Pig 0.953,objects365_pig 0.904, coco_cow 0.337, coco_sheep 0.146, objects365_bear 0.119, objects365_cow 0.109, \n",
            "Person 0.722,objects365_person 0.754, coco_person 0.746, \n",
            "Shorts 0.615,\n",
            "Gondola 0.865,coco_boat 0.833, objects365_boat 0.799, \n",
            "Honeycomb 0.881,objects365_pizza 0.119, \n",
            "Doughnut 0.886,coco_donut 0.940, objects365_donut 0.937, objects365_bread 0.133, objects365_hot dog 0.020, objects365_cake 0.020, \n",
            "Chest of drawers 0.705,objects365_cabinet/shelf 0.283, objects365_nightstand 0.241, \n",
            "Land vehicle 0.818,coco_car 0.674, objects365_car 0.580, objects365_suv 0.293, objects365_sports car 0.206, coco_truck 0.188, \n",
            "Bat 0.976,objects365_person 0.168, objects365_wild bird 0.168, objects365_cat 0.168, coco_dog 0.168, coco_cat 0.168, \n",
            "Monkey 0.953,objects365_monkey 0.943, \n",
            "Dagger 0.968,coco_knife 0.767, objects365_knife 0.747, coco_snowboard 0.208, objects365_saw 0.168, objects365_snowboard 0.129, \n",
            "Tableware 0.553,objects365_plate 0.212, coco_cup 0.173, objects365_cup 0.167, coco_bowl 0.139, coco_bottle 0.109, \n",
            "Human foot 0.413,objects365_high heels 0.168, objects365_sneakers 0.144, objects365_slippers 0.087, objects365_leather shoes 0.079, objects365_boots 0.034, \n",
            "Mug 0.789,objects365_cup 0.949, coco_cup 0.947, objects365_plate 0.088, coco_vase 0.063, objects365_vase 0.059, \n",
            "Alarm clock 1.000,objects365_clock 1.000, coco_clock 0.990, objects365_toy 0.054, \n",
            "Pressure cooker 1.000,objects365_rice cooker 1.000, \n",
            "Human hand 0.311,objects365_glove 0.056, \n",
            "Tortoise 0.894,objects365_tortoise/turtle 0.924, objects365_seal 0.040, coco_elephant 0.026, objects365_jellyfish 0.020, objects365_lobster 0.020, \n",
            "Baseball glove 0.746,coco_baseball glove 0.765, objects365_baseball glove 0.728, objects365_glove 0.155, objects365_backpack 0.030, coco_backpack 0.030, \n",
            "Sword 0.819,objects365_saw 0.345, coco_snowboard 0.282, objects365_knife 0.184, coco_knife 0.180, objects365_snowboard 0.158, \n",
            "Pear 0.863,objects365_pear 0.806, coco_apple 0.342, objects365_avocado 0.168, objects365_pomegranate 0.089, coco_banana 0.089, \n",
            "Miniskirt 0.928,coco_bed 0.050, coco_handbag 0.033, coco_umbrella 0.030, coco_suitcase 0.030, objects365_bed 0.030, \n",
            "Traffic sign 0.721,coco_stop sign 0.404, objects365_stop sign 0.403, objects365_traffic sign 0.221, objects365_crosswalk sign 0.217, coco_book 0.020, \n",
            "Girl 0.536,objects365_person 0.585, coco_person 0.531, \n",
            "Roller skates 0.751,objects365_skating and skiing shoes 0.744, objects365_sneakers 0.039, \n",
            "Dinosaur 0.890,coco_elephant 0.515, coco_horse 0.325, objects365_elephant 0.297, objects365_pig 0.149, objects365_tortoise/turtle 0.129, \n",
            "Porch 0.171,\n",
            "Human beard 0.444,objects365_facial mask 0.115, \n",
            "Submarine sandwich 0.987,coco_sandwich 0.943, objects365_hamburger 0.830, objects365_sandwich 0.740, objects365_hot dog 0.545, coco_dining table 0.297, \n",
            "Screwdriver 0.835,\n",
            "Strawberry 0.661,objects365_strawberry 0.704, \n",
            "Wine glass 0.844,objects365_wine glass 0.901, coco_wine glass 0.898, objects365_cup 0.081, coco_cup 0.044, \n",
            "Seafood 0.398,objects365_shrimp 0.135, objects365_crab 0.093, objects365_plate 0.021, \n",
            "Racket 0.820,coco_tennis racket 0.632, objects365_tennis racket 0.542, objects365_table tennis paddle 0.333, \n",
            "Wheel 0.808,\n",
            "Sea lion 0.878,objects365_seal 0.847, coco_bear 0.089, coco_cow 0.040, objects365_pig 0.020, objects365_shark 0.020, \n",
            "Toy 0.461,objects365_toy 0.265, objects365_teddy bear 0.141, coco_teddy bear 0.137, objects365_person 0.088, objects365_balloon 0.059, \n",
            "Tea 0.728,coco_cup 0.207, objects365_cup 0.199, coco_bowl 0.035, objects365_bowl 0.034, objects365_plate 0.010, \n",
            "Tennis ball 0.701,coco_sports ball 0.712, objects365_tennis ball 0.635, objects365_billiards 0.079, \n",
            "Waste container 0.846,objects365_trash bin/can 0.768, coco_toilet 0.139, coco_refrigerator 0.109, coco_suitcase 0.069, objects365_barrel/bucket 0.054, \n",
            "Mule 0.901,coco_horse 0.768, objects365_donkey 0.656, objects365_horse 0.553, objects365_llama 0.059, objects365_carriage 0.048, \n",
            "Cricket ball 0.663,coco_sports ball 1.000, objects365_baseball 0.663, \n",
            "Pineapple 0.825,objects365_pine apple 0.624, coco_banana 0.378, objects365_banana 0.119, objects365_potted plant 0.059, coco_potted plant 0.030, \n",
            "Coconut 0.176,objects365_coconut 0.240, \n",
            "Doll 0.494,objects365_teddy bear 0.452, objects365_toy 0.451, coco_teddy bear 0.434, objects365_person 0.406, coco_person 0.337, \n",
            "Coffee table 0.723,coco_dining table 0.632, objects365_coffee table 0.539, objects365_desk 0.457, objects365_dining table 0.099, coco_bench 0.066, \n",
            "Snowman 0.629,coco_teddy bear 0.257, objects365_penguin 0.257, coco_bird 0.257, objects365_teddy bear 0.257, objects365_toy 0.257, \n",
            "Lavender 0.308,objects365_flower 0.117, \n",
            "Shrimp 0.595,objects365_shrimp 0.559, objects365_crab 0.084, objects365_lobster 0.076, \n",
            "Maple 0.733,\n",
            "Cowboy hat 0.761,objects365_hat 0.931, objects365_towel/napkin 0.020, \n",
            "Goggles 0.560,objects365_glasses 0.775, \n",
            "Rugby ball 1.000,coco_sports ball 0.975, objects365_volleyball 0.802, objects365_american football 0.802, objects365_soccer 0.307, coco_baseball glove 0.208, \n",
            "Caterpillar 0.847,objects365_zebra 0.444, coco_zebra 0.208, objects365_giraffe 0.182, objects365_butterfly 0.040, objects365_jellyfish 0.030, \n",
            "Poster 0.307,coco_book 0.145, objects365_picture/frame 0.090, objects365_book 0.088, objects365_blackboard/whiteboard 0.067, objects365_person 0.049, \n",
            "Rocket 0.896,coco_airplane 0.347, objects365_airplane 0.300, objects365_helicopter 0.069, \n",
            "Organ 0.902,objects365_piano 0.583, coco_laptop 0.040, objects365_desk 0.040, coco_train 0.020, \n",
            "Saxophone 0.842,objects365_saxophone 0.762, objects365_person 0.234, coco_person 0.203, objects365_trumpet 0.129, objects365_french horn 0.082, \n",
            "Traffic light 0.729,coco_traffic light 0.751, objects365_traffic light 0.736, \n",
            "Cocktail 0.856,objects365_cup 0.649, coco_cup 0.609, objects365_wine glass 0.345, coco_wine glass 0.282, objects365_ice cream 0.079, \n",
            "Plastic bag 1.000,\n",
            "Squash 0.366,objects365_pumpkin 0.327, objects365_cucumber 0.199, coco_banana 0.066, \n",
            "Mushroom 0.672,\n",
            "Hamburger 0.919,coco_sandwich 0.917, objects365_hamburger 0.866, objects365_sandwich 0.328, objects365_hot dog 0.311, coco_dining table 0.120, \n",
            "Light switch 0.901,coco_remote 0.277, objects365_urinal 0.277, objects365_power outlet 0.099, \n",
            "Parachute 0.837,coco_kite 0.517, objects365_kite 0.226, objects365_hotair balloon 0.178, \n",
            "Teddy bear 0.907,coco_teddy bear 0.857, objects365_teddy bear 0.840, coco_sheep 0.069, objects365_llama 0.069, objects365_camel 0.069, \n",
            "Winter melon 0.851,objects365_pumpkin 0.574, objects365_cucumber 0.426, objects365_watermelon 0.287, coco_apple 0.149, objects365_avocado 0.149, \n",
            "Deer 0.798,objects365_deer 0.774, objects365_antelope 0.675, coco_sheep 0.224, coco_cow 0.170, objects365_sheep 0.099, \n",
            "Musical keyboard 0.697,objects365_piano 0.841, coco_suitcase 0.040, objects365_telephone 0.020, objects365_printer 0.020, coco_keyboard 0.017, \n",
            "Plumbing fixture 0.209,objects365_faucet 0.226, coco_sink 0.201, coco_toilet 0.180, objects365_sink 0.178, objects365_toilet 0.126, \n",
            "Scoreboard 0.784,coco_tv 0.040, \n",
            "Baseball bat 0.962,coco_baseball bat 0.970, objects365_baseball bat 0.965, \n",
            "Envelope 1.000,objects365_blackboard/whiteboard 0.337, coco_book 0.281, objects365_storage box 0.168, objects365_book 0.168, \n",
            "Adhesive tape 1.000,objects365_tape 1.000, \n",
            "Briefcase 0.851,coco_suitcase 0.812, objects365_luggage 0.782, objects365_suitcase 0.644, objects365_handbag 0.588, coco_handbag 0.517, \n",
            "Paddle 0.477,objects365_paddle 0.460, \n",
            "Bow and arrow 0.620,\n",
            "Telephone 0.119,coco_cell phone 0.726, objects365_cell phone 0.698, objects365_tablet 0.453, objects365_telephone 0.112, coco_laptop 0.099, \n",
            "Sheep 0.875,coco_sheep 0.867, objects365_sheep 0.851, objects365_llama 0.144, \n",
            "Jacket 0.598,coco_person 0.385, objects365_person 0.367, objects365_backpack 0.290, coco_backpack 0.230, objects365_handbag 0.033, \n",
            "Boy 0.418,objects365_person 0.558, coco_person 0.547, \n",
            "Pizza 0.972,coco_pizza 0.938, objects365_pizza 0.917, objects365_pie 0.370, objects365_plate 0.286, coco_dining table 0.272, \n",
            "Otter 0.914,coco_bear 0.676, objects365_seal 0.662, objects365_bear 0.102, objects365_monkey 0.059, objects365_polar bear 0.030, \n",
            "Office supplies 0.188,coco_book 0.092, objects365_person 0.027, coco_person 0.024, \n",
            "Couch 0.679,objects365_couch 0.704, coco_couch 0.668, coco_chair 0.115, objects365_chair 0.101, coco_person 0.023, \n",
            "Cello 0.850,objects365_cello 0.859, objects365_violin 0.340, objects365_person 0.231, coco_person 0.200, objects365_guitar 0.066, \n",
            "Bull 0.910,coco_cow 0.893, objects365_cow 0.699, objects365_yak 0.418, objects365_pig 0.087, \n",
            "Camel 0.916,objects365_camel 0.733, objects365_llama 0.424, coco_sheep 0.361, coco_horse 0.092, coco_giraffe 0.069, \n",
            "Ball 0.744,coco_sports ball 0.719, objects365_volleyball 0.252, objects365_soccer 0.209, objects365_billiards 0.167, objects365_american football 0.106, \n",
            "Duck 0.813,coco_bird 0.901, objects365_goose 0.767, objects365_duck 0.600, objects365_swan 0.299, objects365_wild bird 0.175, \n",
            "Whale 0.914,objects365_dolphin 0.849, objects365_shark 0.178, objects365_seal 0.121, objects365_tortoise/turtle 0.020, objects365_fish 0.018, \n",
            "Shirt 0.353,coco_person 0.282, objects365_person 0.268, coco_backpack 0.078, objects365_backpack 0.059, coco_suitcase 0.050, \n",
            "Tank 0.921,objects365_machinery vehicle 0.188, coco_truck 0.185, objects365_fire truck 0.185, objects365_race car 0.032, objects365_motorcycle 0.020, \n",
            "Motorcycle 0.817,coco_motorcycle 0.857, objects365_motorcycle 0.849, objects365_person 0.032, coco_person 0.027, \n",
            "Accordion 1.000,coco_suitcase 0.755, coco_person 0.332, objects365_person 0.330, objects365_piano 0.089, coco_laptop 0.050, \n",
            "Owl 0.877,coco_bird 0.926, objects365_eagle 0.878, objects365_parrot 0.069, objects365_monkey 0.040, coco_cat 0.040, \n",
            "Porcupine 1.000,coco_bear 0.347, objects365_monkey 0.079, objects365_tortoise/turtle 0.040, objects365_seal 0.040, \n",
            "Sun hat 0.887,objects365_hat 0.929, coco_person 0.025, objects365_towel/napkin 0.020, objects365_helmet 0.020, objects365_person 0.012, \n",
            "Nail 0.845,\n",
            "Scissors 1.000,objects365_scissors 1.000, coco_scissors 1.000, \n",
            "Swan 0.754,coco_bird 0.947, objects365_swan 0.678, objects365_goose 0.614, objects365_duck 0.289, objects365_wild bird 0.216, \n",
            "Lamp 0.376,objects365_lantern 0.447, objects365_lamp 0.409, coco_vase 0.023, objects365_hair drier 0.020, objects365_hat 0.020, \n",
            "Crown 0.753,objects365_hat 0.138, coco_umbrella 0.135, coco_scissors 0.089, objects365_necklace 0.061, objects365_pig 0.050, \n",
            "Piano 0.952,objects365_piano 0.897, coco_suitcase 0.040, objects365_treadmill 0.030, coco_person 0.024, objects365_desk 0.024, \n",
            "Sculpture 0.611,objects365_person 0.433, coco_person 0.239, objects365_lion 0.128, coco_elephant 0.075, coco_horse 0.057, \n",
            "Cheetah 0.998,objects365_giraffe 0.290, objects365_cat 0.238, coco_cat 0.186, objects365_lion 0.178, coco_giraffe 0.095, \n",
            "Oboe 1.000,objects365_flute 0.505, objects365_saxophone 0.337, coco_scissors 0.316, objects365_saw 0.168, objects365_scissors 0.135, \n",
            "Tin can 0.624,objects365_canned 0.605, coco_bowl 0.290, objects365_bowl 0.180, coco_cup 0.042, coco_bottle 0.021, \n",
            "Mango 0.687,coco_orange 0.545, coco_apple 0.522, objects365_apple 0.455, objects365_lemon 0.455, coco_banana 0.188, \n",
            "Tripod 0.739,objects365_tripod 0.613, coco_bicycle 0.079, objects365_ladder 0.059, objects365_microscope 0.038, objects365_hockey 0.030, \n",
            "Oven 0.721,objects365_oven 0.491, coco_oven 0.462, coco_microwave 0.432, objects365_microwave 0.379, objects365_washing machine 0.067, \n",
            "Mouse 0.000,objects365_mouse 0.974, coco_mouse 0.972, objects365_telephone 0.050, objects365_remote 0.050, coco_remote 0.050, \n",
            "Barge 0.700,coco_boat 0.652, objects365_ship 0.510, objects365_boat 0.340, \n",
            "Coffee 0.756,coco_cup 0.267, objects365_cup 0.234, objects365_plate 0.010, \n",
            "Snowboard 0.685,objects365_snowboard 0.624, coco_snowboard 0.585, objects365_skis 0.300, coco_skis 0.258, coco_skateboard 0.050, \n",
            "Common fig 0.631,coco_apple 0.406, objects365_avocado 0.366, objects365_watermelon 0.345, objects365_apple 0.139, objects365_pomegranate 0.099, \n",
            "Salad 0.576,coco_bowl 0.240, objects365_plate 0.184, coco_dining table 0.165, objects365_noodles 0.142, objects365_pasta 0.124, \n",
            "Marine invertebrates 0.642,objects365_jellyfish 0.233, objects365_crab 0.203, objects365_shrimp 0.187, objects365_lobster 0.128, \n",
            "Umbrella 0.744,coco_umbrella 0.811, objects365_umbrella 0.743, objects365_tent 0.109, coco_toothbrush 0.069, objects365_brush 0.040, \n",
            "Kangaroo 0.893,objects365_deer 0.568, coco_sheep 0.443, objects365_llama 0.317, objects365_donkey 0.099, objects365_sheep 0.084, \n",
            "Human arm 0.235,\n",
            "Measuring cup 0.000,\n",
            "Snail 0.921,objects365_scallop 0.502, objects365_tortoise/turtle 0.059, objects365_frisbee 0.059, objects365_crab 0.059, coco_frisbee 0.059, \n",
            "Loveseat 0.849,objects365_couch 0.889, coco_couch 0.866, coco_person 0.025, objects365_bed 0.025, coco_bed 0.025, \n",
            "Suit 0.784,coco_person 0.526, objects365_person 0.491, \n",
            "Teapot 0.866,objects365_tea pot 0.885, objects365_kettle 0.139, coco_vase 0.118, objects365_plate 0.037, objects365_vase 0.036, \n",
            "Bottle 0.532,coco_bottle 0.717, objects365_bottle 0.606, \n",
            "Alpaca 0.993,objects365_llama 0.969, coco_sheep 0.663, objects365_camel 0.089, objects365_sheep 0.034, coco_bear 0.030, \n",
            "Kettle 0.927,objects365_tea pot 0.935, objects365_kettle 0.208, coco_vase 0.135, coco_cup 0.067, objects365_cup 0.053, \n",
            "Trousers 0.570,coco_person 0.043, objects365_person 0.036, \n",
            "Popcorn 1.000,coco_pizza 0.663, objects365_pot/pan 0.337, objects365_rice 0.337, \n",
            "Centipede 0.931,objects365_zebra 0.624, objects365_lobster 0.436, coco_zebra 0.376, \n",
            "Spider 0.929,objects365_antelope 0.306, objects365_zebra 0.099, coco_broccoli 0.050, objects365_crab 0.020, objects365_broccoli 0.020, \n",
            "Sparrow 0.999,coco_bird 0.999, objects365_wild bird 0.998, objects365_eagle 0.089, objects365_penguin 0.030, objects365_pigeon 0.020, \n",
            "Plate 0.651,objects365_plate 0.766, coco_dining table 0.206, coco_bowl 0.069, coco_cake 0.046, objects365_cake 0.040, \n",
            "Bagel 0.909,coco_donut 0.918, objects365_donut 0.902, objects365_bread 0.269, coco_cake 0.030, coco_sandwich 0.020, \n",
            "Personal care 0.000,objects365_glasses 0.499, objects365_wheelchair 0.101, coco_bicycle 0.020, \n",
            "Apple 0.787,coco_apple 0.827, objects365_apple 0.760, objects365_pomegranate 0.257, objects365_peach 0.207, \n",
            "Brassiere 0.791,coco_tie 0.026, objects365_necklace 0.020, coco_handbag 0.017, \n",
            "Bathroom cabinet 0.165,objects365_cabinet/shelf 0.311, objects365_bathtub 0.024, coco_sink 0.020, objects365_mirror 0.016, objects365_washing machine 0.012, \n",
            "studio couch 0.945,objects365_couch 0.955, coco_couch 0.927, coco_chair 0.066, objects365_chair 0.045, coco_bed 0.026, \n",
            "Computer keyboard 0.893,coco_keyboard 0.900, objects365_keyboard 0.878, coco_remote 0.020, objects365_calculator 0.020, objects365_remote 0.020, \n",
            "Table tennis racket 0.839,objects365_table tennis paddle 0.836, coco_tennis racket 0.339, objects365_tennis racket 0.059, coco_spoon 0.030, objects365_measuring cup 0.030, \n",
            "Sushi 0.329,objects365_sushi 0.319, objects365_plate 0.026, \n",
            "Cabinetry 0.162,objects365_cabinet/shelf 0.334, \n",
            "Street light 0.352,objects365_street lights 0.396, objects365_lamp 0.036, objects365_electric drill 0.020, \n",
            "Towel 0.713,objects365_towel/napkin 0.862, coco_bed 0.149, objects365_pillow 0.074, \n",
            "Nightstand 0.857,objects365_nightstand 0.655, objects365_cabinet/shelf 0.374, objects365_desk 0.067, objects365_coffee table 0.029, coco_oven 0.020, \n",
            "Rabbit 0.968,objects365_rabbit 0.899, coco_cat 0.188, objects365_cat 0.129, objects365_deer 0.089, objects365_pig 0.050, \n",
            "Dolphin 0.910,objects365_dolphin 0.885, objects365_shark 0.210, objects365_seal 0.071, objects365_duck 0.020, objects365_penguin 0.020, \n",
            "Dog 0.923,coco_dog 0.941, objects365_dog 0.929, \n",
            "Jug 0.870,objects365_tea pot 0.783, coco_vase 0.387, objects365_vase 0.165, objects365_kettle 0.089, objects365_cup 0.050, \n",
            "Wok 0.767,objects365_pot/pan 0.663, coco_bowl 0.213, coco_dining table 0.068, coco_oven 0.051, objects365_cucumber 0.050, \n",
            "Fire hydrant 1.000,coco_fire hydrant 1.000, objects365_fire hydrant 1.000, \n",
            "Human eye 0.436,\n",
            "Skyscraper 0.510,\n",
            "Backpack 0.795,coco_backpack 0.694, objects365_backpack 0.690, coco_suitcase 0.624, objects365_luggage 0.434, objects365_handbag 0.422, \n",
            "Potato 0.369,objects365_potato 0.335, objects365_bread/bun 0.050, coco_banana 0.043, objects365_cake 0.030, coco_donut 0.030, \n",
            "Paper towel 1.000,objects365_paper towel 1.000, \n",
            "Lifejacket 0.557,coco_person 0.036, objects365_person 0.033, \n",
            "Bicycle wheel 0.759,coco_bicycle 0.101, objects365_bicycle 0.034, \n",
            "Toilet 0.849,coco_toilet 0.855, objects365_urinal 0.502, objects365_toilet 0.495, objects365_sink 0.022, coco_sink 0.019, \n",
            "time = 218.13771152496338\n"
          ],
          "name": "stdout"
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "n6q1sQCLCLWD"
      },
      "source": [
        "@numba.jit(nopython=True, nogil=True)\n",
        "def np_nms(boxes, scores, thresh):\n",
        "    x1 = boxes[:, 0]\n",
        "    y1 = boxes[:, 1]\n",
        "    x2 = boxes[:, 2] + boxes[:, 0]\n",
        "    y2 = boxes[:, 3] + boxes[:, 1]\n",
        "\n",
        "    areas = (x2 - x1 + 1) * (y2 - y1 + 1)\n",
        "    order = scores.argsort()[::-1]\n",
        "\n",
        "    keep = []\n",
        "    while order.size > 0:\n",
        "        i = order[0]\n",
        "        keep.append(i)\n",
        "        xx1 = np.maximum(x1[i], x1[order[1:]])\n",
        "        yy1 = np.maximum(y1[i], y1[order[1:]])\n",
        "        xx2 = np.minimum(x2[i], x2[order[1:]])\n",
        "        yy2 = np.minimum(y2[i], y2[order[1:]])\n",
        "\n",
        "        w = np.maximum(0.0, xx2 - xx1 + 1)\n",
        "        h = np.maximum(0.0, yy2 - yy1 + 1)\n",
        "        inter = w * h\n",
        "        ovr = inter / (areas[i] + areas[order[1:]] - inter)\n",
        "\n",
        "        inds = np.where(ovr <= thresh)[0]\n",
        "        order = order[inds + 1]\n",
        "\n",
        "    return keep\n",
        "\n",
        "def merge_boxes(boxes_list):\n",
        "    all_image_ids = set()\n",
        "    for boxes_cat in boxes_list:\n",
        "        all_image_ids = all_image_ids.union(boxes_cat.keys())\n",
        "    ret = {}\n",
        "    for image_id in all_image_ids:\n",
        "        all_boxes, all_scores = [], []\n",
        "        for x in boxes_list:\n",
        "            if image_id in x and 'bboxes' in x[image_id]:\n",
        "                all_boxes.extend(x[image_id]['bboxes'])\n",
        "                all_scores.extend(x[image_id]['scores'])\n",
        "        if len(all_boxes) == 0:\n",
        "            continue\n",
        "        all_boxes = np.array(all_boxes).reshape(-1, 4)\n",
        "        all_scores = np.array(all_scores).reshape(-1)\n",
        "        keep = np_nms(all_boxes, all_scores, 0.5)\n",
        "        all_boxes = all_boxes[keep]\n",
        "        all_scores = all_scores[keep]\n",
        "        all_boxes = all_boxes.tolist()\n",
        "        all_scores = all_scores.tolist()\n",
        "        ret[image_id] = {'bboxes': all_boxes, 'scores': all_scores}\n",
        "        \n",
        "    return ret"
      ],
      "execution_count": 7,
      "outputs": []
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "mUKY5M0FUWHg"
      },
      "source": [
        "calced_cost = {}\n",
        "def calc_cost(cats):\n",
        "    cats = sorted(cats)\n",
        "    if tuple(cats) in calced_cost:\n",
        "        return calced_cost[tuple(cats)]\n",
        "    num_cats = len(cats)\n",
        "    sources = [id2sourcename[c] for c in cats]\n",
        "    ret = 0\n",
        "    for c, s in zip(cats, sources):\n",
        "        ann_ind = id2sourceindex[c] \n",
        "        ann_cat = id2sourceid[c]\n",
        "        ori_mAP = mAPs_all[s][c, ann_ind] \n",
        "        merged = merge_boxes([all_preds[s][cc] for cc in cats])\n",
        "        merged_mAP = numba_mAP(merged, all_anns[s][ann_cat])\n",
        "        ret += ori_mAP - merged_mAP\n",
        "\n",
        "    calced_cost[tuple(cats)] = ret\n",
        "    nemes = [predid2name[c] for c in cats]\n",
        "    print(*nemes, ret)\n",
        "    return ret"
      ],
      "execution_count": 8,
      "outputs": []
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "w0iP_N8uwPYm",
        "colab": {
          "base_uri": "https://localhost:8080/"
        },
        "outputId": "89019949-19c9-48e4-a965-29dabf14a086"
      },
      "source": [
        "datasets = ['objects365', 'coco', 'oid']\n",
        "num_cats = [365, 80, 500]\n",
        "cnt = 0\n",
        "dataset_range = {}\n",
        "for d, c in zip(datasets, num_cats):\n",
        "  dataset_range[d] = range(cnt, cnt + c)\n",
        "  cnt = cnt + c\n",
        "print('dataset_range', dataset_range)\n",
        "id2source = np.concatenate(\n",
        "    [np.ones(len(dataset_range[d]), dtype=np.int32) * i \\\n",
        "        for i, d in enumerate(datasets)]\n",
        ").tolist()\n",
        "N = sum(num_cats)"
      ],
      "execution_count": 9,
      "outputs": [
        {
          "output_type": "stream",
          "text": [
            "dataset_range {'objects365': range(0, 365), 'coco': range(365, 445), 'oid': range(445, 945)}\n"
          ],
          "name": "stdout"
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "G9FMM8yYwPYp",
        "colab": {
          "base_uri": "https://localhost:8080/"
        },
        "outputId": "a28f7f4a-241b-4d9c-c685-edb12311b93d"
      },
      "source": [
        "max_new_nodes = {\n",
        "    2: 1000, 3: 1000\n",
        "}\n",
        "n2 = max_new_nodes[2]\n",
        "tau = 0.2\n",
        "oo = 1000\n",
        "\n",
        "# Initialize two-node merge\n",
        "dataset_dists = {}\n",
        "cnt = 0\n",
        "for d1, a in enumerate(datasets):\n",
        "    for d2, b in enumerate(datasets[d1+1:]):\n",
        "        dist = np.ones(\n",
        "            (len(dataset_range[a]), len(dataset_range[b])), dtype=np.float32) * oo\n",
        "        for i in range(len(dataset_range[a])):\n",
        "            for j in range(len(dataset_range[b])):\n",
        "                if mAPs_all[a][j+dataset_range[b][0], i] > max(mAPs_ori[a][i] - tau, 0) and \\\n",
        "                    mAPs_all[b][i+dataset_range[a][0], j] > max(mAPs_ori[b][j] - tau, 0):\n",
        "                    dist[i][j] = calc_cost([i + dataset_range[a][0], j + dataset_range[b][0]])\n",
        "                    cnt += 1\n",
        "        dataset_dists[(d1, d2 + d1 + 1)] = dist\n",
        "\n",
        "score_thresh = 0.05\n",
        "Q = []\n",
        "nodes = {}\n",
        "valid_two_nodes = {}\n",
        "for (i, j) in dataset_dists:\n",
        "    a, b = datasets[i], datasets[j]\n",
        "    ra, rb = dataset_range[a], dataset_range[b]\n",
        "    dist = dataset_dists[(i, j)] # Ni x Nj\n",
        "    mask = np.any(\n",
        "        [dist <= np.partition(\n",
        "            dist, min(n2, dist.shape[k])-1, axis=k\n",
        "          ).take([min(n2, dist.shape[k])-1], axis=k) for k in range(2)], axis=0) # Ni x Nj\n",
        "    mask = mask & (dist <= score_thresh)\n",
        "    nodes[(i, j)] = list(zip(dist[mask],\n",
        "                          *[np.array(x)[w] for x, w in zip((ra, rb), np.where(mask))]))\n",
        "    valid_two_nodes[(i, j)] = set([tuple(sorted((x[1], x[2]))) for x in nodes[(i, j)]])\n",
        "    Q.append((i, j))\n",
        "print('#valid two node merge:', sum(len(v) for k, v in nodes.items()))"
      ],
      "execution_count": 10,
      "outputs": [
        {
          "output_type": "stream",
          "text": [
            "objects365_person coco_person -0.004173702532702106\n",
            "objects365_chair coco_chair -0.020545590041887607\n",
            "objects365_bottle coco_bottle -0.01201157788238899\n",
            "objects365_cup coco_cup -0.01410870770416639\n",
            "objects365_car coco_car 0.007841109934419666\n",
            "objects365_handbag coco_handbag -0.0007549105304302528\n",
            "objects365_potted plant coco_potted plant 0.015291694662358468\n",
            "objects365_tv coco_tv -0.003846611126814725\n",
            "objects365_vase coco_vase 0.0019043138121613845\n",
            "objects365_bench coco_bench -0.003963088635170864\n",
            "objects365_wine glass coco_wine glass -0.0019732300597842256\n",
            "objects365_bowl coco_bowl -0.001933284915319744\n",
            "objects365_dining table coco_dining table -0.06591526765634514\n",
            "objects365_umbrella coco_umbrella 0.008774362283177961\n",
            "objects365_boat coco_boat 0.03709572288069396\n",
            "objects365_backpack coco_backpack -0.017546705680318353\n",
            "objects365_couch coco_couch -0.011309905217425698\n",
            "objects365_tie coco_tie -0.003182089269751387\n",
            "objects365_bed coco_bed 0.008930062598521138\n",
            "objects365_traffic light coco_traffic light 0.002364212038493352\n",
            "objects365_bicycle coco_bicycle -0.0037190976119277908\n",
            "objects365_sink coco_sink 0.023860582325718194\n",
            "objects365_horse coco_horse -0.02374971621107347\n",
            "objects365_apple coco_apple -0.004378270689803787\n",
            "objects365_teddy bear coco_teddy bear -0.0027769759739980637\n",
            "objects365_cake coco_cake -0.025718821747468257\n",
            "objects365_motorcycle coco_motorcycle 0.01171347203821238\n",
            "objects365_wild bird coco_bird -0.07432626379598484\n",
            "objects365_laptop coco_laptop -0.01455480509465279\n",
            "objects365_knife coco_knife -0.0039059319118461833\n",
            "objects365_cell phone coco_cell phone -0.032251616515735604\n",
            "objects365_cow coco_cow -0.02853527222529495\n",
            "objects365_clock coco_clock -0.0014410030723798206\n",
            "objects365_fork coco_fork -0.013597635939569697\n",
            "objects365_bus coco_bus -0.013184515556486587\n",
            "objects365_sheep coco_sheep -0.01945894750037991\n",
            "objects365_keyboard coco_keyboard 0.010312037597788426\n",
            "objects365_dog coco_dog -0.010176792003140589\n",
            "objects365_spoon coco_spoon -0.012069520088705654\n",
            "objects365_mouse coco_mouse 0.0046318273733158\n",
            "objects365_orange coco_orange -0.0818784003800685\n",
            "objects365_banana coco_banana -0.01145611954207465\n",
            "objects365_airplane coco_airplane -0.013393441049179278\n",
            "objects365_luggage coco_suitcase -0.03331955647704632\n",
            "objects365_skis coco_skis 0.004630617576070417\n",
            "objects365_oven coco_oven 0.0859907009814046\n",
            "objects365_remote coco_remote 0.0010933595718723987\n",
            "objects365_baseball glove coco_baseball glove -0.008921818272902282\n",
            "objects365_refrigerator coco_refrigerator -0.04351228239512683\n",
            "objects365_train coco_train -0.005354727258776726\n",
            "objects365_donut coco_donut -0.01668227781163578\n",
            "objects365_tangerine coco_orange -0.07237219729340905\n",
            "objects365_pizza coco_pizza -0.02460904404668518\n",
            "objects365_kite coco_kite -0.009441590840273517\n",
            "objects365_elephant coco_elephant -0.0062775257790442796\n",
            "objects365_broccoli coco_broccoli 0.027955767394292452\n",
            "objects365_toilet coco_toilet 0.00266265869140625\n",
            "objects365_baseball bat coco_baseball bat -0.014770395094805377\n",
            "objects365_microwave coco_microwave -0.011150927236764696\n",
            "objects365_skateboard coco_skateboard -0.011591834006923207\n",
            "objects365_surfboard coco_surfboard -0.008598000106245007\n",
            "objects365_cat coco_cat -0.0026952647926783424\n",
            "objects365_zebra coco_zebra -0.005289046481104176\n",
            "objects365_giraffe coco_giraffe 0.0031769529427632115\n",
            "objects365_stop sign coco_stop sign 0.005977434096950174\n",
            "objects365_carrot coco_carrot -0.05281877119352324\n",
            "objects365_tennis racket coco_tennis racket -0.0033902148208996286\n",
            "objects365_scissors coco_scissors -0.002817618964922275\n",
            "objects365_snowboard coco_snowboard -0.01783989738709857\n",
            "objects365_fire hydrant coco_fire hydrant -0.02952047857907747\n",
            "objects365_frisbee coco_frisbee -0.018547682478876393\n",
            "objects365_hot dog coco_hot dog -0.1268654329942005\n",
            "objects365_toothbrush coco_toothbrush -0.01878292873354237\n",
            "objects365_toaster coco_toaster 0.0029728808025322184\n",
            "objects365_bear coco_bear -0.0077621470583547625\n",
            "objects365_hair drier coco_hair drier 0.001456023737935741\n",
            "objects365_person oid_Man 0.021602858411203463\n",
            "objects365_person oid_Person -0.03497574411996518\n",
            "objects365_sneakers oid_Footwear -0.02058517490283096\n",
            "objects365_chair oid_Chair -0.044206168686989566\n",
            "objects365_car oid_Car 0.018761664924055066\n",
            "objects365_picture/frame oid_Picture frame 0.0012975641996554321\n",
            "objects365_desk oid_Table -0.05852758117241441\n",
            "objects365_street lights oid_Street light -0.04624705562497128\n",
            "objects365_book oid_Book -0.02042665812048583\n",
            "objects365_helmet oid_Helmet -0.027013992319012692\n",
            "objects365_pillow oid_Pillow -0.0252375154211969\n",
            "objects365_potted plant oid_Houseplant -0.005561427609755254\n",
            "objects365_storage box oid_Box 0.006869066764812637\n",
            "objects365_bench oid_Bench -0.6472901215057562\n",
            "objects365_wine glass oid_Wine glass -0.05802035007146322\n",
            "objects365_bowl oid_Bowl -0.09749924251348663\n",
            "objects365_umbrella oid_Umbrella 0.0038428861315887852\n",
            "objects365_boat oid_Watercraft 0.010092775420387223\n",
            "objects365_boat oid_Boat 0.0021826353403602283\n",
            "objects365_flag oid_Flag -0.02104469779694429\n",
            "objects365_stool oid_Stool -0.03168613367741657\n",
            "objects365_backpack oid_Backpack -0.04491127038946252\n",
            "objects365_couch oid_Sofa bed 0.001500717484124836\n",
            "objects365_couch oid_Couch -0.028632711065877725\n",
            "objects365_couch oid_Loveseat -0.05362824697305668\n",
            "objects365_couch oid_studio couch -0.035332814006522106\n",
            "objects365_coffee table oid_Coffee table 0.051252547467109055\n",
            "objects365_toy oid_Toy 0.010278310663629303\n",
            "objects365_toy oid_Doll -0.07913882056675337\n",
            "objects365_tie oid_Tie -0.031167666215707768\n",
            "objects365_bed oid_Infant bed 0.025100042324255\n",
            "objects365_traffic light oid_Traffic light -0.005667247984668999\n",
            "objects365_pen/pencil oid_Pen -0.01655496111010557\n",
            "objects365_microphone oid_Microphone -0.007067112934471376\n",
            "objects365_faucet oid_Tap -0.07821804934208931\n",
            "objects365_bicycle oid_Bicycle -0.017642764761896412\n",
            "objects365_bread oid_Bread -0.1105765009870624\n",
            "objects365_high heels oid_Sandal -0.004889165115828598\n",
            "objects365_high heels oid_High heels 0.04193340109126398\n",
            "objects365_sink oid_Sink -0.07521862499784715\n",
            "objects365_horse oid_Horse -0.008657384036791282\n",
            "objects365_fish oid_Fish -0.08560604653736159\n",
            "objects365_apple oid_Apple 0.003055869942844458\n",
            "objects365_camera oid_Camera 0.005078138396291454\n",
            "objects365_candle oid_Candle -0.030516826870417846\n",
            "objects365_teddy bear oid_Teddy bear 0.020195737923725976\n",
            "objects365_motorcycle oid_Motorcycle -0.03389061795602932\n",
            "objects365_laptop oid_Laptop -0.04817493894312641\n",
            "objects365_cell phone oid_Mobile phone -0.002928311281865159\n",
            "objects365_paddle oid_Paddle 0.015980944480046166\n",
            "objects365_cow oid_Cattle -0.09574246347540671\n",
            "objects365_clock oid_Wall clock 0.02158598734600714\n",
            "objects365_clock oid_Clock -0.048362714229243875\n",
            "objects365_drum oid_Drum -0.03417544804587225\n",
            "objects365_fork oid_Fork -0.037307915416094295\n",
            "objects365_bus oid_Bus -0.001801717989515561\n",
            "objects365_pot/pan oid_Wok 0.06160230447750281\n",
            "objects365_sheep oid_Sheep -0.02464328662003623\n",
            "objects365_guitar oid_Guitar -0.020171109107461338\n",
            "objects365_tea pot oid_Teapot -0.049141513829184025\n",
            "objects365_tea pot oid_Kettle -0.05056738499367591\n",
            "objects365_keyboard oid_Computer keyboard 0.0046272590608880115\n",
            "objects365_fan oid_Mechanical fan 0.0002947455585593506\n",
            "objects365_fan oid_Ceiling fan -0.0005499885814024275\n",
            "objects365_dog oid_Dog -0.006278014419102473\n",
            "objects365_spoon oid_Spoon -0.019069271217478367\n",
            "objects365_blackboard/whiteboard oid_Whiteboard -0.07097147773988177\n",
            "objects365_balloon oid_Balloon -0.025356955162369355\n",
            "objects365_mouse oid_Mouse -0.9736155920689649\n",
            "objects365_telephone oid_Corded phone -0.05856222120842125\n",
            "objects365_orange oid_Grapefruit 0.016430500415292093\n",
            "objects365_orange oid_Orange -0.10373521411773007\n",
            "objects365_banana oid_Banana -0.02840777464432287\n",
            "objects365_airplane oid_Airplane -0.0019157295769984817\n",
            "objects365_airplane oid_Aircraft -0.005979855166803549\n",
            "objects365_luggage oid_Suitcase -0.02054029762154752\n",
            "objects365_luggage oid_Briefcase -0.00518160851875149\n",
            "objects365_skis oid_Ski -0.006809665720061475\n",
            "objects365_soccer oid_Football -0.0009176973069068284\n",
            "objects365_baseball glove oid_Baseball glove 0.0056783037610573794\n",
            "objects365_paper towel oid_Toilet paper 0.00213604929423572\n",
            "objects365_refrigerator oid_Refrigerator -0.006349015353929843\n",
            "objects365_train oid_Train -0.005362504779702348\n",
            "objects365_tomato oid_Tomato -0.04487596230931801\n",
            "objects365_tent oid_Tent -0.0311385779687674\n",
            "objects365_lantern oid_Lantern -0.027085115118782088\n",
            "objects365_donut oid_Doughnut -0.05926369558466549\n",
            "objects365_donut oid_Bagel -0.011883556842803955\n",
            "objects365_tangerine oid_Grapefruit -0.023445231563384017\n",
            "objects365_pizza oid_Pizza -0.012505213813026383\n",
            "objects365_kite oid_Kite -0.009675976663532815\n",
            "objects365_elephant oid_Elephant 0.0008734181375786854\n",
            "objects365_gas stove oid_Gas stove 0.000358139819437886\n",
            "objects365_broccoli oid_Broccoli -0.009693340499802416\n",
            "objects365_shovel oid_Spatula -0.008626154153653864\n",
            "objects365_baseball bat oid_Baseball bat -0.01849363050838504\n",
            "objects365_skateboard oid_Skateboard -0.0007727960548779\n",
            "objects365_surfboard oid_Surfboard -0.006600577347349423\n",
            "objects365_gun oid_Shotgun 0.0024419164303506324\n",
            "objects365_gun oid_Rifle -0.06198619084783119\n",
            "objects365_cat oid_Lynx 0.007595282379943558\n",
            "objects365_cat oid_Cat -0.02942159034238001\n",
            "objects365_lemon oid_Lemon -0.08931561625830015\n",
            "objects365_zebra oid_Zebra -0.0021168424351381\n",
            "objects365_giraffe oid_Giraffe -0.029333196064033062\n",
            "objects365_pumpkin oid_Pumpkin 0.006354390984714575\n",
            "objects365_pumpkin oid_Squash 0.00453083054854142\n",
            "objects365_piano oid_Harpsichord 0.050077603004946514\n",
            "objects365_piano oid_Musical keyboard -0.15236210350943086\n",
            "objects365_piano oid_Piano 0.013848779225113406\n",
            "objects365_stop sign oid_Stop sign -5.3113049514053046e-09\n",
            "objects365_carrot oid_Carrot -0.017473293708102522\n",
            "objects365_washing machine oid_Washing machine -0.0180077340343211\n",
            "objects365_cookies oid_Cookie -0.04831918107696098\n",
            "objects365_cutting/chopping board oid_Cutting board -0.09226722144844512\n",
            "objects365_tennis racket oid_Tennis racket 0.008726461098925942\n",
            "objects365_skating and skiing shoes oid_Roller skates -0.010889911415553288\n",
            "objects365_scissors oid_Scissors 0.0034094579739145647\n",
            "objects365_baseball oid_Cricket ball -0.0024139957852883365\n",
            "objects365_strawberry oid_Strawberry -0.02085677733515756\n",
            "objects365_coffee machine oid_Coffeemaker 0.01465337848899384\n",
            "objects365_snowboard oid_Snowboard -0.03518431375522424\n",
            "objects365_suitcase oid_Suitcase 0.012417476366061997\n",
            "objects365_grapes oid_Grape -0.0043193512033707915\n",
            "objects365_ladder oid_Ladder -0.04932973083883224\n",
            "objects365_pear oid_Pear -0.004798720821295677\n",
            "objects365_american football oid_Rugby ball -0.019469556241932473\n",
            "objects365_printer oid_Printer -0.007455592108244979\n",
            "objects365_fire hydrant oid_Fire hydrant -8.689117903759591e-05\n",
            "objects365_goose oid_Goose -0.030326395931810524\n",
            "objects365_goose oid_Duck -0.03623802709107349\n",
            "objects365_tennis ball oid_Tennis ball 0.014431531476502335\n",
            "objects365_chopsticks oid_Chopsticks -0.1424003535568124\n",
            "objects365_hamburger oid_Sandwich -0.08892853720353378\n",
            "objects365_hamburger oid_Submarine sandwich -0.046920164976969714\n",
            "objects365_hamburger oid_Hamburger -0.07119351743471503\n",
            "objects365_cucumber oid_Zucchini 0.03136411781358245\n",
            "objects365_cucumber oid_Cucumber 0.02668241168012711\n",
            "objects365_blender oid_Blender -0.004328896208564803\n",
            "objects365_blender oid_Coffeemaker 0.06028733188563051\n",
            "objects365_blender oid_Food processor 0.022579983319386432\n",
            "objects365_blender oid_Mixer -0.01124460124733423\n",
            "objects365_hot dog oid_Hot dog -0.018607730912690135\n",
            "objects365_deer oid_Deer -0.018870455203670033\n",
            "objects365_egg oid_Egg -0.06151499341029937\n",
            "objects365_ship oid_Barge -0.03157200907716651\n",
            "objects365_chicken oid_Chicken -0.017590486177123443\n",
            "objects365_chicken oid_Turkey -0.18317558859834582\n",
            "objects365_ice cream oid_Ice cream 0.01579786143680606\n",
            "objects365_tape oid_Adhesive tape -0.005441293858065466\n",
            "objects365_wheelchair oid_Wheelchair -0.08021728089540314\n",
            "objects365_cabbage oid_Cabbage -0.012043683835775476\n",
            "objects365_golf ball oid_Golf ball -0.13385593537056795\n",
            "objects365_peach oid_Peach -0.0234150111601494\n",
            "objects365_cello oid_Cello -0.026475065415448418\n",
            "objects365_toaster oid_Toaster 0.0013633500231374773\n",
            "objects365_helicopter oid_Helicopter -0.007388918116541188\n",
            "objects365_penguin oid_Penguin 0.007840602704794142\n",
            "objects365_swan oid_Swan -0.0006498452460411697\n",
            "objects365_french fries oid_French fries 0.003339601625310329\n",
            "objects365_saxophone oid_Saxophone 0.006478202815103029\n",
            "objects365_trumpet oid_Trombone 0.02249941967501501\n",
            "objects365_bear oid_Raccoon -0.01714602673407828\n",
            "objects365_bear oid_Brown bear -0.0013751328581631528\n",
            "objects365_tablet oid_Tablet computer -0.02294996439820468\n",
            "objects365_volleyball oid_Volleyball -0.03622120382762195\n",
            "objects365_volleyball oid_Rugby ball -0.06395970535750439\n",
            "objects365_dumbbell oid_Dumbbell -0.1327987075737207\n",
            "objects365_camel oid_Camel -1.731780495972668e-05\n",
            "objects365_goldfish oid_Goldfish -0.037353538935727404\n",
            "objects365_antelope oid_Antelope -0.038009436413793285\n",
            "objects365_shrimp oid_Shrimp -0.02178263782274603\n",
            "objects365_rickshaw oid_Cart -0.008662957366150248\n",
            "objects365_coconut oid_Coconut 0.004271676782334227\n",
            "objects365_jellyfish oid_Jellyfish -0.009308671007061897\n",
            "objects365_treadmill oid_Treadmill -0.03619457353459732\n",
            "objects365_butterfly oid_Butterfly -0.000600052647071303\n",
            "objects365_pig oid_Pig -0.05026937829385891\n",
            "objects365_rice cooker oid_Toaster 0.008376546130322016\n",
            "objects365_hair drier oid_Shower -1.1802899768653674e-09\n",
            "objects365_green onion oid_Asparagus -0.0841584139236129\n",
            "objects365_dolphin oid_Whale -0.009836894450801381\n",
            "objects365_dolphin oid_Dolphin -0.019193795647951595\n",
            "objects365_sushi oid_Sushi -0.001529828156575097\n",
            "objects365_spring rolls oid_Burrito -0.08296151400202573\n",
            "objects365_tortoise/turtle oid_Sea turtle -0.006898497590924313\n",
            "objects365_tortoise/turtle oid_Turtle -0.006216222696965312\n",
            "objects365_tortoise/turtle oid_Tortoise -0.030100791171045582\n",
            "objects365_parrot oid_Parrot -0.01869560409300397\n",
            "objects365_flute oid_Flute -0.014026425926402034\n",
            "objects365_shark oid_Shark -0.049855870185512186\n",
            "objects365_binoculars oid_Binoculars -0.0066006750163465355\n",
            "objects365_llama oid_Alpaca -0.1829949688203264\n",
            "objects365_noodles oid_Pasta -0.014790338602396508\n",
            "objects365_crab oid_Shellfish -0.03708830933169563\n",
            "objects365_crab oid_Crab 0.002198260461929974\n",
            "objects365_lion oid_Lion -0.004845750803994742\n",
            "objects365_polar bear oid_Polar bear 0.0020218745316609166\n",
            "objects365_seal oid_Harbor seal -0.017105522722300925\n",
            "objects365_seal oid_Sea lion -0.017656638480649134\n",
            "objects365_table tennis paddle oid_Table tennis racket -0.043627080940964125\n",
            "objects365_starfish oid_Starfish -1.180290004620943e-09\n",
            "objects365_eagle oid_Eagle -0.03140994758889226\n",
            "objects365_eagle oid_Falcon -0.05517890547761817\n",
            "objects365_monkey oid_Monkey 0.0035711698012776683\n",
            "objects365_rabbit oid_Hamster 2.7441742378453426e-08\n",
            "objects365_rabbit oid_Rabbit 2.2130437427048122e-08\n",
            "objects365_ambulance oid_Ambulance -0.043564348527700525\n",
            "objects365_asparagus oid_Asparagus 0.03267326980534169\n",
            "objects365_hoverboard oid_Segway 0.028170680350596333\n",
            "objects365_pasta oid_Pasta 0.014155021398374379\n",
            "coco_person oid_Man 0.025389847483965444\n",
            "coco_person oid_Person -0.030648296422297383\n",
            "coco_bicycle oid_Bicycle -0.031033924310514216\n",
            "coco_car oid_Car 0.004184674508500907\n",
            "coco_motorcycle oid_Motorcycle -0.03415679075930378\n",
            "coco_airplane oid_Airplane -0.008132368916332178\n",
            "coco_airplane oid_Aircraft 0.0009735934805162882\n",
            "coco_bus oid_Bus -0.01600912478890759\n",
            "coco_train oid_Train -0.024257394937005405\n",
            "coco_truck oid_Truck -0.07235498829643328\n",
            "coco_boat oid_Watercraft -0.0072396866755910505\n",
            "coco_boat oid_Boat -0.0322641824731732\n",
            "coco_boat oid_Barge 0.050712424487170615\n",
            "coco_traffic light oid_Traffic light -0.02081608742770591\n",
            "coco_fire hydrant oid_Fire hydrant -1.2983189967563646e-08\n",
            "coco_stop sign oid_Stop sign 9.563358703457148e-05\n",
            "coco_bench oid_Bench -0.668313225897232\n",
            "coco_bird oid_Bird -0.015476526010154479\n",
            "coco_cat oid_Lynx 0.004218781348502287\n",
            "coco_cat oid_Cat -0.031838069457818974\n",
            "coco_dog oid_Dog -0.0181924063380402\n",
            "coco_horse oid_Horse -0.023558041246810713\n",
            "coco_horse oid_Mule -0.01246766849319536\n",
            "coco_sheep oid_Sheep 0.0044311226004420945\n",
            "coco_cow oid_Cattle -0.12514311606341066\n",
            "coco_cow oid_Bull -0.011662086047748543\n",
            "coco_elephant oid_Elephant 0.0211102460870648\n",
            "coco_bear oid_Raccoon 0.0054244499395389445\n",
            "coco_bear oid_Bear -0.01555738354673486\n",
            "coco_bear oid_Polar bear -0.007017623670030337\n",
            "coco_bear oid_Brown bear -0.0056612857497565505\n",
            "coco_zebra oid_Zebra 0.0005321538094247291\n",
            "coco_giraffe oid_Giraffe -0.021007985761850145\n",
            "coco_backpack oid_Backpack -0.04382968066942572\n",
            "coco_umbrella oid_Umbrella -0.03295401358368377\n",
            "coco_handbag oid_Handbag -0.10026657551822099\n",
            "coco_tie oid_Tie -0.06993206745327107\n",
            "coco_suitcase oid_Suitcase -0.013775035001263758\n",
            "coco_suitcase oid_Briefcase 0.038897520539784125\n",
            "coco_skis oid_Ski 0.00022061892075114775\n",
            "coco_snowboard oid_Snowboard -0.03788923892644369\n",
            "coco_sports ball oid_Tennis ball -0.011766993173278228\n",
            "coco_sports ball oid_Ball -0.017761269418319903\n",
            "coco_kite oid_Kite 0.06374271405805454\n",
            "coco_baseball bat oid_Baseball bat -0.011858438501263557\n",
            "coco_baseball glove oid_Baseball glove -0.020504523326854818\n",
            "coco_skateboard oid_Skateboard -0.004652195932841496\n",
            "coco_surfboard oid_Surfboard -0.018684275374554193\n",
            "coco_tennis racket oid_Tennis racket 0.005530130745160733\n",
            "coco_tennis racket oid_Racket 0.012181325124041908\n",
            "coco_wine glass oid_Wine glass -0.050424080083865896\n",
            "coco_fork oid_Fork -0.04999624886135068\n",
            "coco_spoon oid_Spoon -0.04049446559188391\n",
            "coco_banana oid_Banana -0.06685284635808209\n",
            "coco_apple oid_Peach -0.09398102730807695\n",
            "coco_apple oid_Apple -0.03696510284253862\n",
            "coco_sandwich oid_Sandwich -0.04567845062454157\n",
            "coco_sandwich oid_Submarine sandwich -0.0036168809574429472\n",
            "coco_sandwich oid_Hamburger -0.019240956790376407\n",
            "coco_orange oid_Grapefruit -0.054624373664950376\n",
            "coco_orange oid_Orange -0.03948012259927125\n",
            "coco_orange oid_Lemon -0.04591982848573434\n",
            "coco_broccoli oid_Broccoli -0.04562351343655352\n",
            "coco_carrot oid_Carrot -0.18200948259027877\n",
            "coco_hot dog oid_Hot dog -0.005115457690588299\n",
            "coco_pizza oid_Pizza 0.016890631748898155\n",
            "coco_donut oid_Doughnut -0.05319252934786356\n",
            "coco_donut oid_Bagel 0.005265564611642626\n",
            "coco_cake oid_Dessert -0.02247208032277548\n",
            "coco_chair oid_Chair -0.06487330735319907\n",
            "coco_couch oid_Sofa bed 0.0041243593291481195\n",
            "coco_couch oid_Couch -0.011339530496313976\n",
            "coco_couch oid_Loveseat -0.03387509714258774\n",
            "coco_couch oid_studio couch -0.026471212653830567\n",
            "coco_potted plant oid_Houseplant -0.047090482298690506\n",
            "coco_bed oid_Infant bed 0.03203974826501155\n",
            "coco_dining table oid_Table -0.02188157445133332\n",
            "coco_toilet oid_Bidet -0.16659718279791358\n",
            "coco_toilet oid_Toilet -0.0024146520265257987\n",
            "coco_tv oid_Computer monitor -0.10708324035795602\n",
            "coco_laptop oid_Laptop -0.06986032618154392\n",
            "coco_mouse oid_Mouse -0.9784523773901533\n",
            "coco_keyboard oid_Computer keyboard -0.01315579319944471\n",
            "coco_cell phone oid_Mobile phone -0.011704402984959006\n",
            "coco_microwave oid_Microwave oven 0.005806813145628031\n",
            "coco_toaster oid_Toaster 8.262029949079874e-09\n",
            "coco_sink oid_Sink -0.0725889908205164\n",
            "coco_refrigerator oid_Refrigerator 0.002980712616797665\n",
            "coco_book oid_Book 0.02603470438187666\n",
            "coco_clock oid_Wall clock 0.03160250304949164\n",
            "coco_clock oid_Clock -0.10596735229586618\n",
            "coco_vase oid_Vase -0.15735807631275445\n",
            "coco_scissors oid_Scissors -1.770434998604742e-08\n",
            "coco_teddy bear oid_Teddy bear 0.02699958038802197\n",
            "#valid two node merge: 374\n"
          ],
          "name": "stdout"
        },
        {
          "output_type": "stream",
          "text": [
            "C:\\Users\\zhoux\\anaconda3\\lib\\site-packages\\ipykernel_launcher.py:40: DeprecationWarning: Calling np.sum(generator) is deprecated, and in the future will give a different result. Use np.sum(np.fromiter(generator)) or the python sum builtin instead.\n"
          ],
          "name": "stderr"
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "W2_qZQFxozNn",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 1000
        },
        "outputId": "59b40a36-1530-4a5f-c0d5-140855cc214a"
      },
      "source": [
        "# three-dataset merge\n",
        "def remove_duplicate(list1, list2):\n",
        "    tmp = list1 + list2\n",
        "    tmp = sorted(tmp, key=lambda x:x[1:])\n",
        "    ret = [tmp[0]]\n",
        "    for i in range(1, len(tmp)):\n",
        "        if tmp[i][1:] != tmp[i-1][1:]:\n",
        "            ret.append(tmp[i])\n",
        "    return tmp\n",
        "\n",
        "\n",
        "def get_new_candidates(candidates, ds, new_dataset_id, score_thresh):\n",
        "    '''\n",
        "    condidates: list of (score, id1, id2, ...)\n",
        "    ds: list of existing dataset ids\n",
        "    '''\n",
        "    ret = []\n",
        "    if len(candidates) == 0:\n",
        "        print('No candidates for', [datasets[d] for d in ds])\n",
        "        return ret\n",
        "    n = len(candidates[0]) - 1\n",
        "    tonew = dataset_range[datasets[new_dataset_id]]\n",
        "    for item in candidates:\n",
        "        cost = item[0]\n",
        "        ids = list(item[1:])\n",
        "        sources = [id2source[x] for x in ids]\n",
        "        new_candidates = []\n",
        "        for new_id in tonew:\n",
        "            valid = True\n",
        "            for id, source in zip(ids, sources):\n",
        "                dataset_pair = tuple(sorted((source, new_dataset_id)))\n",
        "                id_pair = tuple(sorted((id, new_id)))\n",
        "                if id_pair not in valid_two_nodes[dataset_pair]:\n",
        "                    valid = False\n",
        "                    break\n",
        "            if valid:\n",
        "                new_cost = calc_cost(sorted(ids + [new_id]))\n",
        "                new_candidates.append(\n",
        "                    (new_cost, *tuple(sorted(ids + [new_id]))))\n",
        "        new_candidates = sorted(new_candidates)[:max_new_nodes[len(ids) + 1]]\n",
        "        new_candidates = [x for x in new_candidates if x[0] <= score_thresh]\n",
        "        ret.extend(new_candidates)\n",
        "        \n",
        "    return ret\n",
        "\n",
        "left = 0\n",
        "while left < len(Q):\n",
        "    ds = Q[left]\n",
        "    candidates = nodes[ds]\n",
        "    left = left + 1\n",
        "    for k, c in enumerate(datasets):\n",
        "        if k not in ds:\n",
        "            new_datasets = tuple(sorted(list(ds) + [k]))\n",
        "            new_candidates = get_new_candidates(candidates, ds, k, score_thresh=tau)\n",
        "            if new_datasets in nodes and len(nodes[new_datasets]) > 0:\n",
        "                nodes[new_datasets] = remove_duplicate(\n",
        "                    nodes[new_datasets], new_candidates)\n",
        "            else:\n",
        "                nodes[new_datasets] = new_candidates\n",
        "                Q.append(new_datasets)\n",
        "\n",
        "top_clusters = [] # formart: (score, id1, id2, ...)\n",
        "for ds, candidates in nodes.items():\n",
        "    top_clusters.extend(candidates)\n",
        "print(len(c)-1 for c in top_clusters)\n",
        "hist([len(c)-1 for c in top_clusters])"
      ],
      "execution_count": 11,
      "outputs": [
        {
          "output_type": "stream",
          "text": [
            "objects365_person coco_person oid_Man 0.012958781553967125\n",
            "objects365_person coco_person oid_Person -0.042491667931622734\n",
            "objects365_chair coco_chair oid_Chair -0.08492186429476978\n",
            "objects365_car coco_car oid_Car 0.008081395732294161\n",
            "objects365_potted plant coco_potted plant oid_Houseplant -0.02989301085472107\n",
            "objects365_bench coco_bench oid_Bench -0.6764567860282293\n",
            "objects365_wine glass coco_wine glass oid_Wine glass -0.06528172870673754\n",
            "objects365_umbrella coco_umbrella oid_Umbrella -0.06259702868980943\n",
            "objects365_boat coco_boat oid_Watercraft 0.025823159678147634\n",
            "objects365_boat coco_boat oid_Boat 0.0005251074781511544\n",
            "objects365_backpack coco_backpack oid_Backpack -0.061305396627671704\n",
            "objects365_couch coco_couch oid_Sofa bed -0.009283519617401703\n",
            "objects365_couch coco_couch oid_Couch -0.03539077598269613\n",
            "objects365_couch coco_couch oid_Loveseat -0.06470044650653806\n",
            "objects365_couch coco_couch oid_studio couch -0.04391905134267149\n",
            "objects365_tie coco_tie oid_Tie -0.0751054555472761\n",
            "objects365_bed coco_bed oid_Infant bed 0.033755779561429944\n",
            "objects365_traffic light coco_traffic light oid_Traffic light -0.019602479911086546\n",
            "objects365_bicycle coco_bicycle oid_Bicycle -0.03782895974593592\n",
            "objects365_sink coco_sink oid_Sink -0.0389643411825199\n",
            "objects365_horse coco_horse oid_Horse -0.04833163365279092\n",
            "objects365_apple coco_apple oid_Apple -0.05347457528114319\n",
            "objects365_teddy bear coco_teddy bear oid_Teddy bear 0.025678793982704118\n",
            "objects365_motorcycle coco_motorcycle oid_Motorcycle -0.02370713518397649\n",
            "objects365_laptop coco_laptop oid_Laptop -0.08428430734294468\n",
            "objects365_cell phone coco_cell phone oid_Mobile phone -0.04250041211005484\n",
            "objects365_cow coco_cow oid_Cattle -0.16294746941859173\n",
            "objects365_clock coco_clock oid_Wall clock 0.03131779939821455\n",
            "objects365_clock coco_clock oid_Clock -0.10665179479240194\n",
            "objects365_fork coco_fork oid_Fork -0.07225044292978716\n",
            "objects365_bus coco_bus oid_Bus -0.029100138362091466\n",
            "objects365_sheep coco_sheep oid_Sheep -0.02463276905588585\n",
            "objects365_keyboard coco_keyboard oid_Computer keyboard -0.004213050745501379\n",
            "objects365_dog coco_dog oid_Dog -0.02779214689047027\n",
            "objects365_spoon coco_spoon oid_Spoon -0.05472051359639313\n",
            "objects365_mouse coco_mouse oid_Mouse -0.9747012393309338\n",
            "objects365_orange coco_orange oid_Grapefruit -0.1337452645939176\n",
            "objects365_orange coco_orange oid_Orange -0.14265614423421347\n",
            "objects365_banana coco_banana oid_Banana -0.055997273414441884\n",
            "objects365_airplane coco_airplane oid_Airplane -0.021141000903478924\n",
            "objects365_airplane coco_airplane oid_Aircraft -0.016583962015586318\n",
            "objects365_luggage coco_suitcase oid_Suitcase -0.04675039383444468\n",
            "objects365_luggage coco_suitcase oid_Briefcase 0.006541953523560351\n",
            "objects365_skis coco_skis oid_Ski -0.003403836252665826\n",
            "objects365_baseball glove coco_baseball glove oid_Baseball glove -0.028793874058392954\n",
            "objects365_refrigerator coco_refrigerator oid_Refrigerator -0.040786084562245084\n",
            "objects365_train coco_train oid_Train -0.03441364989422335\n",
            "objects365_donut coco_donut oid_Doughnut -0.07205004090129741\n",
            "objects365_donut coco_donut oid_Bagel -0.015676077049557535\n",
            "objects365_tangerine coco_orange oid_Grapefruit -0.12718570888927666\n",
            "objects365_pizza coco_pizza oid_Pizza -0.010170835964750546\n",
            "objects365_elephant coco_elephant oid_Elephant 0.015262416093656306\n",
            "objects365_broccoli coco_broccoli oid_Broccoli -0.026285724917260722\n",
            "objects365_baseball bat coco_baseball bat oid_Baseball bat -0.030733187895010006\n",
            "objects365_skateboard coco_skateboard oid_Skateboard -0.022424229005775898\n",
            "objects365_surfboard coco_surfboard oid_Surfboard -0.027193422069644035\n",
            "objects365_cat coco_cat oid_Lynx 0.004860134408025463\n",
            "objects365_cat coco_cat oid_Cat -0.033599802173010174\n",
            "objects365_zebra coco_zebra oid_Zebra -0.005966482186081312\n",
            "objects365_giraffe coco_giraffe oid_Giraffe -0.026637511678261228\n",
            "objects365_stop sign coco_stop sign oid_Stop sign 0.005977434096950174\n",
            "objects365_carrot coco_carrot oid_Carrot -0.2343137183106772\n",
            "objects365_tennis racket coco_tennis racket oid_Tennis racket -0.003390203017999638\n",
            "objects365_scissors coco_scissors oid_Scissors -0.004016927563317951\n",
            "objects365_snowboard coco_snowboard oid_Snowboard -0.0666257910209127\n",
            "objects365_fire hydrant coco_fire hydrant oid_Fire hydrant -0.02952047857907747\n",
            "objects365_hot dog coco_hot dog oid_Hot dog -0.15024444490376088\n",
            "objects365_toaster coco_toaster oid_Toaster 0.0016278252743258115\n",
            "objects365_bear coco_bear oid_Raccoon -0.019974198671850907\n",
            "objects365_bear coco_bear oid_Brown bear -0.021464893723478484\n",
            "<generator object <genexpr> at 0x000001F000F4D5C8>\n"
          ],
          "name": "stdout"
        },
        {
          "output_type": "execute_result",
          "data": {
            "text/plain": [
              "(array([374.,   0.,   0.,   0.,   0.,   0.,   0.,   0.,   0., 210.]),\n",
              " array([2. , 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8, 2.9, 3. ]),\n",
              " <a list of 10 Patch objects>)"
            ]
          },
          "metadata": {
            "tags": []
          },
          "execution_count": 11
        },
        {
          "output_type": "display_data",
          "data": {
            "text/plain": [
              "<Figure size 432x288 with 1 Axes>"
            ],
            "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXcAAAD4CAYAAAAXUaZHAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjMsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+AADFEAAARU0lEQVR4nO3df6zddX3H8efLFtENY1EupGvrSlw3xWUWdseauSUKZgL+UUxwwS1CCEldhosmyyL6xza3kWgyZTGbmCqMapxIFEenzI2hzpkN2MXVAlbnnTKobej1F8LIWFrf++N8O4+3pz2n95xzr/fD85GcnO/38/18z/f9yW1f53s/9/s9J1WFJKktz1jpAiRJk2e4S1KDDHdJapDhLkkNMtwlqUFrV7oAgDPOOKM2b9680mVI0qpy3333fauqZgZt+7EI982bNzM3N7fSZUjSqpLkv463zWkZSWqQ4S5JDTLcJalBhrskNchwl6QGGe6S1CDDXZIaZLhLUoMMd0lq0I/FHarj2Hztp1bs2A+949UrdmxJOhHP3CWpQYa7JDXIcJekBhnuktQgw12SGmS4S1KDDHdJapDhLkkNMtwlqUFDwz3Js5Lcm+RLSR5M8vau/eYk30iyp3ts7dqT5D1J5pPsTXLetAchSfpRo3z8wFPABVX1RJJTgC8k+btu2+9X1ccW9b8Y2NI9fhm4oXuWJC2ToWfu1fNEt3pK96gT7LId+GC3393AuiTrxy9VkjSqkebck6xJsgc4BNxZVfd0m67rpl6uT3Jq17YBeKRv9/1d2+LX3JFkLsncwsLCGEOQJC02UrhX1ZGq2gpsBM5P8vPAW4EXAb8EPA94S9c9g15iwGvurKrZqpqdmZlZUvGSpMFO6mqZqvoe8Dngoqo62E29PAX8FXB+120/sKlvt43AgQnUKkka0ShXy8wkWdctPxt4JfCVo/PoSQJcCjzQ7bIbuKK7amYb8FhVHZxK9ZKkgUa5WmY9sCvJGnpvBrdW1SeTfCbJDL1pmD3Ab3f97wAuAeaBJ4GrJl+2JOlEhoZ7Ve0Fzh3QfsFx+hdwzfilSZKWyjtUJalBhrskNchwl6QGGe6S1CDDXZIaZLhLUoMMd0lqkOEuSQ0y3CWpQYa7JDXIcJekBhnuktQgw12SGmS4S1KDDHdJapDhLkkNMtwlqUGGuyQ1yHCXpAYNDfckz0pyb5IvJXkwydu79rOT3JPka0k+muSZXfup3fp8t33zdIcgSVpslDP3p4ALquqlwFbgoiTbgHcC11fVFuC7wNVd/6uB71bVzwDXd/0kSctoaLhXzxPd6indo4ALgI917buAS7vl7d063fYLk2RiFUuShhppzj3JmiR7gEPAncB/At+rqsNdl/3Ahm55A/AIQLf9MeD5A15zR5K5JHMLCwvjjUKS9CNGCveqOlJVW4GNwPnAiwd1654HnaXXMQ1VO6tqtqpmZ2ZmRq1XkjSCk7papqq+B3wO2AasS7K227QRONAt7wc2AXTbnwt8ZxLFSpJGM8rVMjNJ1nXLzwZeCewDPgtc1nW7Eri9W97drdNt/0xVHXPmLkmanrXDu7Ae2JVkDb03g1ur6pNJvgzckuRPgX8Hbuz63wh8KMk8vTP2y6dQtyTpBIaGe1XtBc4d0P51evPvi9v/B3jtRKqTJC2Jd6hKUoMMd0lqkOEuSQ0y3CWpQYa7JDXIcJekBhnuktQgw12SGmS4S1KDDHdJapDhLkkNMtwlqUGGuyQ1yHCXpAYZ7pLUIMNdkhpkuEtSgwx3SWrQKF+QvSnJZ5PsS/Jgkjd17X+U5JtJ9nSPS/r2eWuS+SRfTfKqaQ5AknSsUb4g+zDwe1X1xSTPAe5Lcme37fqq+rP+zknOofel2C8Bfgr4xyQ/W1VHJlm4JOn4hp65V9XBqvpit/w4sA/YcIJdtgO3VNVTVfUNYJ4BX6QtSZqek5pzT7IZOBe4p2t6Y5K9SW5KcnrXtgF4pG+3/Qx4M0iyI8lckrmFhYWTLlySdHwjh3uS04CPA2+uqu8DNwAvBLYCB4F3He06YPc6pqFqZ1XNVtXszMzMSRcuSTq+kcI9ySn0gv3DVXUbQFU9WlVHquoHwPv54dTLfmBT3+4bgQOTK1mSNMwoV8sEuBHYV1Xv7mtf39ftNcAD3fJu4PIkpyY5G9gC3Du5kiVJw4xytczLgNcD9yfZ07W9DXhdkq30plweAt4AUFUPJrkV+DK9K22u8UoZSVpeQ8O9qr7A4Hn0O06wz3XAdWPUJUkag3eoSlKDDHdJapDhLkkNMtwlqUGGuyQ1yHCXpAYZ7pLUIMNdkhpkuEtSgwx3SWqQ4S5JDTLcJalBhrskNchwl6QGGe6S1CDDXZIaZLhLUoNG+Zo9SWra5ms/tWLHfugdr57K63rmLkkNGhruSTYl+WySfUkeTPKmrv15Se5M8rXu+fSuPUnek2Q+yd4k5017EJKkHzXKmfth4Peq6sXANuCaJOcA1wJ3VdUW4K5uHeBiYEv32AHcMPGqJUknNDTcq+pgVX2xW34c2AdsALYDu7puu4BLu+XtwAer525gXZL1E69cknRcJzXnnmQzcC5wD3BWVR2E3hsAcGbXbQPwSN9u+7u2xa+1I8lckrmFhYWTr1ySdFwjh3uS04CPA2+uqu+fqOuAtjqmoWpnVc1W1ezMzMyoZUiSRjBSuCc5hV6wf7iqbuuaHz063dI9H+ra9wOb+nbfCByYTLmSpFGMcrVMgBuBfVX17r5Nu4Eru+Urgdv72q/orprZBjx2dPpGkrQ8RrmJ6WXA64H7k+zp2t4GvAO4NcnVwMPAa7ttdwCXAPPAk8BVE61YkjTU0HCvqi8weB4d4MIB/Qu4Zsy6JElj8A5VSWqQ4S5JDTLcJalBhrskNchwl6QGGe6S1CDDXZIaZLhLUoMMd0lqkOEuSQ0y3CWpQYa7JDXIcJekBhnuktQgw12SGmS4S1KDDHdJapDhLkkNMtwlqUFDwz3JTUkOJXmgr+2PknwzyZ7ucUnftrcmmU/y1SSvmlbhkqTjG+XM/WbgogHt11fV1u5xB0CSc4DLgZd0+7w3yZpJFStJGs3QcK+qzwPfGfH1tgO3VNVTVfUNYB44f4z6JElLMM6c+xuT7O2mbU7v2jYAj/T12d+1HSPJjiRzSeYWFhbGKEOStNhSw/0G4IXAVuAg8K6uPQP61qAXqKqdVTVbVbMzMzNLLEOSNMiSwr2qHq2qI1X1A+D9/HDqZT+wqa/rRuDAeCVKkk7WksI9yfq+1dcAR6+k2Q1cnuTUJGcDW4B7xytRknSy1g7rkOQjwMuBM5LsB/4QeHmSrfSmXB4C3gBQVQ8muRX4MnAYuKaqjkyndEnS8QwN96p63YDmG0/Q/zrgunGKkiSNxztUJalBhrskNchwl6QGGe6S1CDDXZIaZLhLUoMMd0lqkOEuSQ0y3CWpQYa7JDXIcJekBhnuktQgw12SGmS4S1KDDHdJapDhLkkNMtwlqUGGuyQ1aGi4J7kpyaEkD/S1PS/JnUm+1j2f3rUnyXuSzCfZm+S8aRYvSRpslDP3m4GLFrVdC9xVVVuAu7p1gIuBLd1jB3DDZMqUJJ2MoeFeVZ8HvrOoeTuwq1veBVza1/7B6rkbWJdk/aSKlSSNZqlz7mdV1UGA7vnMrn0D8Ehfv/1d2zGS7Egyl2RuYWFhiWVIkgaZ9B9UM6CtBnWsqp1VNVtVszMzMxMuQ5Ke3pYa7o8enW7png917fuBTX39NgIHll6eJGkplhruu4Eru+Urgdv72q/orprZBjx2dPpGkrR81g7rkOQjwMuBM5LsB/4QeAdwa5KrgYeB13bd7wAuAeaBJ4GrplCzJGmIoeFeVa87zqYLB/Qt4Jpxi5Ikjcc7VCWpQYa7JDXIcJekBhnuktQgw12SGmS4S1KDDHdJapDhLkkNMtwlqUGGuyQ1yHCXpAYZ7pLUIMNdkhpkuEtSgwx3SWqQ4S5JDTLcJalBhrskNchwl6QGDf0O1RNJ8hDwOHAEOFxVs0meB3wU2Aw8BPxGVX13vDIlSSdjEmfur6iqrVU1261fC9xVVVuAu7p1SdIymsa0zHZgV7e8C7h0CseQJJ3AuOFewD8kuS/Jjq7trKo6CNA9nzloxyQ7kswlmVtYWBizDElSv7Hm3IGXVdWBJGcCdyb5yqg7VtVOYCfA7OxsjVmHJKnPWGfuVXWgez4EfAI4H3g0yXqA7vnQuEVKkk7OksM9yU8mec7RZeDXgQeA3cCVXbcrgdvHLVKSdHLGmZY5C/hEkqOv89dV9ekk/wbcmuRq4GHgteOXKUk6GUsO96r6OvDSAe3fBi4cpyhJ0ni8Q1WSGmS4S1KDDHdJapDhLkkNMtwlqUGGuyQ1yHCXpAYZ7pLUIMNdkhpkuEtSgwx3SWqQ4S5JDTLcJalBhrskNchwl6QGGe6S1CDDXZIaZLhLUoMMd0lq0NTCPclFSb6aZD7JtdM6jiTpWFMJ9yRrgL8ELgbOAV6X5JxpHEuSdKxpnbmfD8xX1der6n+BW4DtUzqWJGmRtVN63Q3AI33r+4Ff7u+QZAewo1t9IslXl3isM4BvLXHfseSdK3FUYAXHvIIc89PD027MeedYY/7p422YVrhnQFv9yErVTmDn2AdK5qpqdtzXWU0c89ODY356mNaYpzUtsx/Y1Le+ETgwpWNJkhaZVrj/G7AlydlJnglcDuye0rEkSYtMZVqmqg4neSPw98Aa4KaqenAax2ICUzurkGN+enDMTw9TGXOqangvSdKq4h2qktQgw12SGrQqwj3JpiSfTbIvyYNJ3jSgT5K8p/u4g71JzluJWidlxDH/VjfWvUn+JclLV6LWSRllzH19fynJkSSXLWeNkzbqmJO8PMmers8/LXedkzTiv+3nJvnbJF/q+ly1ErVOSpJnJbm3bzxvH9Dn1CQf7TLsniSbxzpoVf3YP4D1wHnd8nOA/wDOWdTnEuDv6F1jvw24Z6XrXoYx/wpwerd88dNhzN22NcBngDuAy1a67mX4Oa8Dvgy8oFs/c6XrXoYxvw14Z7c8A3wHeOZK1z7GmAOc1i2fAtwDbFvU53eA93XLlwMfHeeYq+LMvaoOVtUXu+XHgX307oLttx34YPXcDaxLsn6ZS52YUcZcVf9SVd/tVu+mdz/BqjXizxngd4GPA4eWsbypGHHMvwncVlUPd/1W9bhHHHMBz0kS4DR64X54WQudoC6XnuhWT+kei69m2Q7s6pY/BlzYjX9JVkW49+t+VTmX3jtfv0EfeTAoGFadE4y539X0fnNpwvHGnGQD8Brgfctf1XSd4Of8s8DpST6X5L4kVyx3bdNygjH/BfBiejc/3g+8qap+sKzFTViSNUn20DspubOqjpthVXUYeAx4/lKPN62PH5iKJKfRO2N7c1V9f/HmAbus+us8h4z5aJ9X0Av3X13O2qZlyJj/HHhLVR0Z46Tmx86QMa8FfhG4EHg28K9J7q6q/1jmMidqyJhfBewBLgBeCNyZ5J+P939gNaiqI8DWJOuATyT5+ap6oK/LRDNs1Zy5JzmF3j+ED1fVbQO6NPeRByOMmSS/AHwA2F5V317O+qZhhDHPArckeQi4DHhvkkuXscSJG/Hf9qer6r+r6lvA54HV/sfzYWO+it5UVFXVPPAN4EXLWeO0VNX3gM8BFy3a9P8ZlmQt8Fx601FLsirCvZt3uhHYV1XvPk633cAV3VUz24DHqurgshU5YaOMOckLgNuA16/2szgYbcxVdXZVba6qzfTmJX+nqv5mGcucqBH/bd8O/FqStUl+gt4nrO5brhonbcQxP0zvNxWSnAX8HPD15alw8pLMdGfsJHk28ErgK4u67Qau7JYvAz5T3V9Xl2K1TMu8DHg9cH83ZwW9v6a/AKCq3kfvyolLgHngSXrv/KvZKGP+A3pzcu/tpigO1+r+RL1RxtyaoWOuqn1JPg3sBX4AfGDRr/OrzSg/5z8Bbk5yP73pird0v7WsVuuBXel9kdEzgFur6pNJ/hiYq6rd9N7wPpRknt4Z++XjHNCPH5CkBq2KaRlJ0skx3CWpQYa7JDXIcJekBhnuktQgw12SGmS4S1KD/g+Udswtts2hUQAAAABJRU5ErkJggg==\n"
          },
          "metadata": {
            "tags": [],
            "needs_background": "light"
          }
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "sK_T2SXODDhK"
      },
      "source": [
        "# !sudo apt install coinor-cbc coinor-libcbc-dev\r\n",
        "# !pip install cylp"
      ],
      "execution_count": 12,
      "outputs": []
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "z9-iI8k5wPYu",
        "colab": {
          "base_uri": "https://localhost:8080/"
        },
        "outputId": "fef3d5d6-8441-4368-9125-211b62bdb676"
      },
      "source": [
        "# Running optimization\n",
        "from cylp.cy import CyClpSimplex\n",
        "from cylp.py.modeling.CyLPModel import CyLPArray, CyLPModel\n",
        "\n",
        "cost = CyLPArray([c[0] * (len(c) - 1.) for c in top_clusters])\n",
        "size = CyLPArray([len(c)-2. for c in top_clusters])\n",
        "\n",
        "m = CyLPModel()\n",
        "x = m.addVariable('x', len(top_clusters), isInt=True)\n",
        "\n",
        "weight = 0.5 # lambda in the paper\n",
        "\n",
        "# add constraints\n",
        "m += 0 <= x\n",
        "m += x <= 1\n",
        "\n",
        "# No overlapping clusters\n",
        "cluster_set = [[] for _ in range(N)]\n",
        "for i, c in enumerate(top_clusters):\n",
        "    for a in c[1:]:\n",
        "        cluster_set[a].append(i)\n",
        "\n",
        "for s in cluster_set:\n",
        "    if len(s):\n",
        "        w = np.zeros(len(top_clusters))\n",
        "        w[s] = 1\n",
        "        m += CyLPArray(w) * x <= 1\n",
        "        \n",
        "# Objective\n",
        "m.objective = sum((cost - weight * size) * x)\n",
        "\n",
        "print('C', m.nVars, m.nCons)\n",
        "\n",
        "s = CyClpSimplex(m)\n",
        "r = s.primal()\n",
        "sol_x = s.primalVariableSolution['x']\n",
        "print(r, np.sum(sol_x), N - sum(size * sol_x), sum(cost * sol_x), weight * (1.0 * N - 1.0 * sum(size * sol_x)))\n",
        "print('num_classes', int(N - sum(size * sol_x) + 1e-7))"
      ],
      "execution_count": 13,
      "outputs": [
        {
          "output_type": "stream",
          "text": [
            "C 584 480\n",
            "optimal 189.00000000018002 700.999999999771 -20.8646632466205 350.4999999998855\n",
            "num_classes 701\n"
          ],
          "name": "stdout"
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "scrolled": false,
        "id": "McvCMFthwPY4",
        "colab": {
          "base_uri": "https://localhost:8080/"
        },
        "outputId": "134693c1-662d-45b9-d61c-cc1e2c46a958"
      },
      "source": [
        "# Visualize merged classes\n",
        "for i, s in enumerate(sol_x):\n",
        "    if s > 0.1:\n",
        "        print('%4.1f %7.4f'%(s, top_clusters[i][0]), *['%-50s'%names[j] for j in top_clusters[i][1:]])"
      ],
      "execution_count": 14,
      "outputs": [
        {
          "output_type": "stream",
          "text": [
            " 1.0 -0.0120 objects365_bottle                                  coco_bottle                                       \n",
            " 1.0 -0.0141 objects365_cup                                     coco_cup                                          \n",
            " 1.0 -0.0659 objects365_dining table                            coco_dining table                                 \n",
            " 1.0 -0.0257 objects365_cake                                    coco_cake                                         \n",
            " 1.0 -0.0743 objects365_wild bird                               coco_bird                                         \n",
            " 1.0 -0.0039 objects365_knife                                   coco_knife                                        \n",
            " 1.0  0.0011 objects365_remote                                  coco_remote                                       \n",
            " 1.0 -0.0112 objects365_microwave                               coco_microwave                                    \n",
            " 1.0 -0.0185 objects365_frisbee                                 coco_frisbee                                      \n",
            " 1.0 -0.0188 objects365_toothbrush                              coco_toothbrush                                   \n",
            " 1.0 -0.0206 objects365_sneakers                                oid_Footwear                                      \n",
            " 1.0  0.0013 objects365_picture/frame                           oid_Picture frame                                 \n",
            " 1.0 -0.0585 objects365_desk                                    oid_Table                                         \n",
            " 1.0 -0.0462 objects365_street lights                           oid_Street light                                  \n",
            " 1.0 -0.0204 objects365_book                                    oid_Book                                          \n",
            " 1.0 -0.0270 objects365_helmet                                  oid_Helmet                                        \n",
            " 1.0 -0.0252 objects365_pillow                                  oid_Pillow                                        \n",
            " 1.0  0.0069 objects365_storage box                             oid_Box                                           \n",
            " 1.0 -0.0975 objects365_bowl                                    oid_Bowl                                          \n",
            " 1.0  0.0101 objects365_boat                                    oid_Watercraft                                    \n",
            " 1.0 -0.0210 objects365_flag                                    oid_Flag                                          \n",
            " 1.0 -0.0317 objects365_stool                                   oid_Stool                                         \n",
            " 1.0 -0.0791 objects365_toy                                     oid_Doll                                          \n",
            " 1.0 -0.0166 objects365_pen/pencil                              oid_Pen                                           \n",
            " 1.0 -0.0071 objects365_microphone                              oid_Microphone                                    \n",
            " 1.0 -0.0782 objects365_faucet                                  oid_Tap                                           \n",
            " 1.0 -0.1106 objects365_bread                                   oid_Bread                                         \n",
            " 1.0 -0.0049 objects365_high heels                              oid_Sandal                                        \n",
            " 1.0 -0.0856 objects365_fish                                    oid_Fish                                          \n",
            " 1.0  0.0051 objects365_camera                                  oid_Camera                                        \n",
            " 1.0 -0.0305 objects365_candle                                  oid_Candle                                        \n",
            " 1.0  0.0160 objects365_paddle                                  oid_Paddle                                        \n",
            " 1.0 -0.0342 objects365_drum                                    oid_Drum                                          \n",
            " 1.0 -0.0202 objects365_guitar                                  oid_Guitar                                        \n",
            " 1.0 -0.0506 objects365_tea pot                                 oid_Kettle                                        \n",
            " 1.0 -0.0005 objects365_fan                                     oid_Ceiling fan                                   \n",
            " 1.0 -0.0710 objects365_blackboard/whiteboard                   oid_Whiteboard                                    \n",
            " 1.0 -0.0254 objects365_balloon                                 oid_Balloon                                       \n",
            " 1.0 -0.0586 objects365_telephone                               oid_Corded phone                                  \n",
            " 1.0 -0.1037 objects365_orange                                  oid_Orange                                        \n",
            " 1.0 -0.0009 objects365_soccer                                  oid_Football                                      \n",
            " 1.0  0.0021 objects365_paper towel                             oid_Toilet paper                                  \n",
            " 1.0 -0.0449 objects365_tomato                                  oid_Tomato                                        \n",
            " 1.0 -0.0311 objects365_tent                                    oid_Tent                                          \n",
            " 1.0 -0.0271 objects365_lantern                                 oid_Lantern                                       \n",
            " 1.0 -0.0097 objects365_kite                                    oid_Kite                                          \n",
            " 1.0  0.0004 objects365_gas stove                               oid_Gas stove                                     \n",
            " 1.0 -0.0086 objects365_shovel                                  oid_Spatula                                       \n",
            " 1.0 -0.0620 objects365_gun                                     oid_Rifle                                         \n",
            " 1.0 -0.0893 objects365_lemon                                   oid_Lemon                                         \n",
            " 1.0  0.0045 objects365_pumpkin                                 oid_Squash                                        \n",
            " 1.0 -0.1524 objects365_piano                                   oid_Musical keyboard                              \n",
            " 1.0 -0.0180 objects365_washing machine                         oid_Washing machine                               \n",
            " 1.0 -0.0483 objects365_cookies                                 oid_Cookie                                        \n",
            " 1.0 -0.0923 objects365_cutting/chopping board                  oid_Cutting board                                 \n",
            " 1.0 -0.0109 objects365_skating and skiing shoes                oid_Roller skates                                 \n",
            " 1.0 -0.0024 objects365_baseball                                oid_Cricket ball                                  \n",
            " 1.0 -0.0209 objects365_strawberry                              oid_Strawberry                                    \n",
            " 1.0  0.0147 objects365_coffee machine                          oid_Coffeemaker                                   \n",
            " 1.0  0.0124 objects365_suitcase                                oid_Suitcase                                      \n",
            " 1.0 -0.0043 objects365_grapes                                  oid_Grape                                         \n",
            " 1.0 -0.0493 objects365_ladder                                  oid_Ladder                                        \n",
            " 1.0 -0.0048 objects365_pear                                    oid_Pear                                          \n",
            " 1.0 -0.0195 objects365_american football                       oid_Rugby ball                                    \n",
            " 1.0 -0.0075 objects365_printer                                 oid_Printer                                       \n",
            " 1.0 -0.0362 objects365_goose                                   oid_Duck                                          \n",
            " 1.0  0.0144 objects365_tennis ball                             oid_Tennis ball                                   \n",
            " 1.0 -0.1424 objects365_chopsticks                              oid_Chopsticks                                    \n",
            " 1.0 -0.0712 objects365_hamburger                               oid_Hamburger                                     \n",
            " 1.0  0.0267 objects365_cucumber                                oid_Cucumber                                      \n",
            " 1.0 -0.0112 objects365_blender                                 oid_Mixer                                         \n",
            " 1.0 -0.0189 objects365_deer                                    oid_Deer                                          \n",
            " 1.0 -0.0615 objects365_egg                                     oid_Egg                                           \n",
            " 1.0 -0.0316 objects365_ship                                    oid_Barge                                         \n",
            " 1.0 -0.1832 objects365_chicken                                 oid_Turkey                                        \n",
            " 1.0  0.0158 objects365_ice cream                               oid_Ice cream                                     \n",
            " 1.0 -0.0054 objects365_tape                                    oid_Adhesive tape                                 \n",
            " 1.0 -0.0802 objects365_wheelchair                              oid_Wheelchair                                    \n",
            " 1.0 -0.0120 objects365_cabbage                                 oid_Cabbage                                       \n",
            " 1.0 -0.1339 objects365_golf ball                               oid_Golf ball                                     \n",
            " 1.0 -0.0234 objects365_peach                                   oid_Peach                                         \n",
            " 1.0 -0.0265 objects365_cello                                   oid_Cello                                         \n",
            " 1.0 -0.0074 objects365_helicopter                              oid_Helicopter                                    \n",
            " 1.0  0.0078 objects365_penguin                                 oid_Penguin                                       \n",
            " 1.0 -0.0006 objects365_swan                                    oid_Swan                                          \n",
            " 1.0  0.0033 objects365_french fries                            oid_French fries                                  \n",
            " 1.0  0.0065 objects365_saxophone                               oid_Saxophone                                     \n",
            " 1.0  0.0225 objects365_trumpet                                 oid_Trombone                                      \n",
            " 1.0 -0.0171 objects365_bear                                    oid_Raccoon                                       \n",
            " 1.0 -0.0229 objects365_tablet                                  oid_Tablet computer                               \n",
            " 1.0 -0.0362 objects365_volleyball                              oid_Volleyball                                    \n",
            " 1.0 -0.1328 objects365_dumbbell                                oid_Dumbbell                                      \n",
            " 1.0 -0.0000 objects365_camel                                   oid_Camel                                         \n",
            " 1.0 -0.0374 objects365_goldfish                                oid_Goldfish                                      \n",
            " 1.0 -0.0380 objects365_antelope                                oid_Antelope                                      \n",
            " 1.0 -0.0218 objects365_shrimp                                  oid_Shrimp                                        \n",
            " 1.0 -0.0087 objects365_rickshaw                                oid_Cart                                          \n",
            " 1.0  0.0043 objects365_coconut                                 oid_Coconut                                       \n",
            " 1.0 -0.0093 objects365_jellyfish                               oid_Jellyfish                                     \n",
            " 1.0 -0.0362 objects365_treadmill                               oid_Treadmill                                     \n",
            " 1.0 -0.0006 objects365_butterfly                               oid_Butterfly                                     \n",
            " 1.0 -0.0503 objects365_pig                                     oid_Pig                                           \n",
            " 1.0 -0.0000 objects365_hair drier                              oid_Shower                                        \n",
            " 1.0 -0.0842 objects365_green onion                             oid_Asparagus                                     \n",
            " 1.0 -0.0192 objects365_dolphin                                 oid_Dolphin                                       \n",
            " 1.0 -0.0015 objects365_sushi                                   oid_Sushi                                         \n",
            " 1.0 -0.0830 objects365_spring rolls                            oid_Burrito                                       \n",
            " 1.0 -0.0301 objects365_tortoise/turtle                         oid_Tortoise                                      \n",
            " 1.0 -0.0187 objects365_parrot                                  oid_Parrot                                        \n",
            " 1.0 -0.0140 objects365_flute                                   oid_Flute                                         \n",
            " 1.0 -0.0499 objects365_shark                                   oid_Shark                                         \n",
            " 1.0 -0.0066 objects365_binoculars                              oid_Binoculars                                    \n",
            " 1.0 -0.1830 objects365_llama                                   oid_Alpaca                                        \n",
            " 1.0 -0.0148 objects365_noodles                                 oid_Pasta                                         \n",
            " 1.0 -0.0371 objects365_crab                                    oid_Shellfish                                     \n",
            " 1.0 -0.0048 objects365_lion                                    oid_Lion                                          \n",
            " 1.0  0.0020 objects365_polar bear                              oid_Polar bear                                    \n",
            " 1.0 -0.0177 objects365_seal                                    oid_Sea lion                                      \n",
            " 1.0 -0.0436 objects365_table tennis paddle                     oid_Table tennis racket                           \n",
            " 1.0 -0.0000 objects365_starfish                                oid_Starfish                                      \n",
            " 1.0 -0.0552 objects365_eagle                                   oid_Falcon                                        \n",
            " 1.0  0.0036 objects365_monkey                                  oid_Monkey                                        \n",
            " 1.0  0.0000 objects365_rabbit                                  oid_Rabbit                                        \n",
            " 1.0 -0.0436 objects365_ambulance                               oid_Ambulance                                     \n",
            " 1.0  0.0282 objects365_hoverboard                              oid_Segway                                        \n",
            " 1.0 -0.0724 coco_truck                                         oid_Truck                                         \n",
            " 1.0 -0.0323 coco_boat                                          oid_Boat                                          \n",
            " 1.0 -0.0156 coco_bear                                          oid_Bear                                          \n",
            " 1.0 -0.1003 coco_handbag                                       oid_Handbag                                       \n",
            " 1.0 -0.0178 coco_sports ball                                   oid_Ball                                          \n",
            " 1.0 -0.0457 coco_sandwich                                      oid_Sandwich                                      \n",
            " 1.0 -0.1666 coco_toilet                                        oid_Bidet                                         \n",
            " 1.0 -0.1071 coco_tv                                            oid_Computer monitor                              \n",
            " 1.0 -0.1574 coco_vase                                          oid_Vase                                          \n",
            " 1.0 -0.0425 objects365_person                                  coco_person                                        oid_Person                                        \n",
            " 1.0 -0.0849 objects365_chair                                   coco_chair                                         oid_Chair                                         \n",
            " 1.0  0.0081 objects365_car                                     coco_car                                           oid_Car                                           \n",
            " 1.0 -0.0299 objects365_potted plant                            coco_potted plant                                  oid_Houseplant                                    \n",
            " 1.0 -0.6765 objects365_bench                                   coco_bench                                         oid_Bench                                         \n",
            " 1.0 -0.0653 objects365_wine glass                              coco_wine glass                                    oid_Wine glass                                    \n",
            " 1.0 -0.0626 objects365_umbrella                                coco_umbrella                                      oid_Umbrella                                      \n",
            " 1.0 -0.0613 objects365_backpack                                coco_backpack                                      oid_Backpack                                      \n",
            " 1.0 -0.0647 objects365_couch                                   coco_couch                                         oid_Loveseat                                      \n",
            " 1.0 -0.0751 objects365_tie                                     coco_tie                                           oid_Tie                                           \n",
            " 1.0  0.0338 objects365_bed                                     coco_bed                                           oid_Infant bed                                    \n",
            " 1.0 -0.0196 objects365_traffic light                           coco_traffic light                                 oid_Traffic light                                 \n",
            " 1.0 -0.0378 objects365_bicycle                                 coco_bicycle                                       oid_Bicycle                                       \n",
            " 1.0 -0.0390 objects365_sink                                    coco_sink                                          oid_Sink                                          \n",
            " 1.0 -0.0483 objects365_horse                                   coco_horse                                         oid_Horse                                         \n",
            " 1.0 -0.0535 objects365_apple                                   coco_apple                                         oid_Apple                                         \n",
            " 1.0  0.0257 objects365_teddy bear                              coco_teddy bear                                    oid_Teddy bear                                    \n",
            " 1.0 -0.0237 objects365_motorcycle                              coco_motorcycle                                    oid_Motorcycle                                    \n",
            " 1.0 -0.0843 objects365_laptop                                  coco_laptop                                        oid_Laptop                                        \n",
            " 1.0 -0.0425 objects365_cell phone                              coco_cell phone                                    oid_Mobile phone                                  \n",
            " 1.0 -0.1629 objects365_cow                                     coco_cow                                           oid_Cattle                                        \n",
            " 1.0 -0.1067 objects365_clock                                   coco_clock                                         oid_Clock                                         \n",
            " 1.0 -0.0723 objects365_fork                                    coco_fork                                          oid_Fork                                          \n",
            " 1.0 -0.0291 objects365_bus                                     coco_bus                                           oid_Bus                                           \n",
            " 1.0 -0.0246 objects365_sheep                                   coco_sheep                                         oid_Sheep                                         \n",
            " 1.0 -0.0042 objects365_keyboard                                coco_keyboard                                      oid_Computer keyboard                             \n",
            " 1.0 -0.0278 objects365_dog                                     coco_dog                                           oid_Dog                                           \n",
            " 1.0 -0.0547 objects365_spoon                                   coco_spoon                                         oid_Spoon                                         \n",
            " 1.0 -0.9747 objects365_mouse                                   coco_mouse                                         oid_Mouse                                         \n",
            " 1.0 -0.0560 objects365_banana                                  coco_banana                                        oid_Banana                                        \n",
            " 1.0 -0.0211 objects365_airplane                                coco_airplane                                      oid_Airplane                                      \n",
            " 1.0  0.0065 objects365_luggage                                 coco_suitcase                                      oid_Briefcase                                     \n",
            " 1.0 -0.0034 objects365_skis                                    coco_skis                                          oid_Ski                                           \n",
            " 1.0 -0.0288 objects365_baseball glove                          coco_baseball glove                                oid_Baseball glove                                \n",
            " 1.0 -0.0408 objects365_refrigerator                            coco_refrigerator                                  oid_Refrigerator                                  \n",
            " 1.0 -0.0344 objects365_train                                   coco_train                                         oid_Train                                         \n",
            " 1.0 -0.0721 objects365_donut                                   coco_donut                                         oid_Doughnut                                      \n",
            " 1.0 -0.1272 objects365_tangerine                               coco_orange                                        oid_Grapefruit                                    \n",
            " 1.0 -0.0102 objects365_pizza                                   coco_pizza                                         oid_Pizza                                         \n",
            " 1.0  0.0153 objects365_elephant                                coco_elephant                                      oid_Elephant                                      \n",
            " 1.0 -0.0263 objects365_broccoli                                coco_broccoli                                      oid_Broccoli                                      \n",
            " 1.0 -0.0307 objects365_baseball bat                            coco_baseball bat                                  oid_Baseball bat                                  \n",
            " 1.0 -0.0224 objects365_skateboard                              coco_skateboard                                    oid_Skateboard                                    \n",
            " 1.0 -0.0272 objects365_surfboard                               coco_surfboard                                     oid_Surfboard                                     \n",
            " 1.0 -0.0336 objects365_cat                                     coco_cat                                           oid_Cat                                           \n",
            " 1.0 -0.0060 objects365_zebra                                   coco_zebra                                         oid_Zebra                                         \n",
            " 1.0 -0.0266 objects365_giraffe                                 coco_giraffe                                       oid_Giraffe                                       \n",
            " 1.0  0.0060 objects365_stop sign                               coco_stop sign                                     oid_Stop sign                                     \n",
            " 1.0 -0.2343 objects365_carrot                                  coco_carrot                                        oid_Carrot                                        \n",
            " 1.0 -0.0034 objects365_tennis racket                           coco_tennis racket                                 oid_Tennis racket                                 \n",
            " 1.0 -0.0040 objects365_scissors                                coco_scissors                                      oid_Scissors                                      \n",
            " 1.0 -0.0666 objects365_snowboard                               coco_snowboard                                     oid_Snowboard                                     \n",
            " 1.0 -0.0295 objects365_fire hydrant                            coco_fire hydrant                                  oid_Fire hydrant                                  \n",
            " 1.0 -0.1502 objects365_hot dog                                 coco_hot dog                                       oid_Hot dog                                       \n",
            " 1.0  0.0016 objects365_toaster                                 coco_toaster                                       oid_Toaster                                       \n"
          ],
          "name": "stdout"
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "_Q2JU0_QwPY8",
        "colab": {
          "base_uri": "https://localhost:8080/"
        },
        "outputId": "2f4f771f-e687-476a-92d3-14779764bda5"
      },
      "source": [
        "# Print google sheet friendly version\n",
        "change_oid_names = ['Mouse', 'Bench']\n",
        "for change_oid_name in change_oid_names:\n",
        "    cnt = 0\n",
        "    for x in categories['oid']:\n",
        "        if x['name'] == change_oid_name:\n",
        "            cnt = cnt + 1\n",
        "            x['name'] = '{}{}'.format(change_oid_name, cnt)\n",
        "            # print('Renaming oid', change_oid_name, \\\n",
        "            #       'to', x['name'])\n",
        "oidname2freebase = {x['name']: x['freebase_id'] for x in categories['oid']}\n",
        "oidname2freebase[''] = ''\n",
        "names = []\n",
        "for d in datasets:\n",
        "    names.extend([x['name'] for x in sorted(categories[d], key=lambda x:x['id'])])\n",
        "merged = [False for _ in range(len(names))]\n",
        "print_order = ['oid', 'objects365', 'coco',]\n",
        "heads = ['oid_freebase', 'oid_name', 'objects365_name', 'coco_name', ]\n",
        "head_str = 'key'\n",
        "for head in heads:\n",
        "    head_str = head_str + ', {}'.format(head)\n",
        "print(head_str)\n",
        "cnt = 0\n",
        "for i, s in enumerate(sol_x):\n",
        "    if s > 0.1:\n",
        "        inds = top_clusters[i][1:]\n",
        "        dataset_name = {d: '' for d in datasets}\n",
        "        for ind in inds:\n",
        "          merged[ind] = True\n",
        "          d = datasets[id2source[ind]]\n",
        "          name = names[ind]\n",
        "          dataset_name[d] = name\n",
        "        if name == 'background':\n",
        "          continue\n",
        "        unified_name = dataset_name[print_order[0]]\n",
        "        for d in print_order[1:]:\n",
        "            unified_name = unified_name + '_{}'.format(dataset_name[d])\n",
        "        print(unified_name, end='')\n",
        "        cnt = cnt + 1\n",
        "        for d in print_order:\n",
        "            if d == 'oid':\n",
        "                print(', {}, {}'.format(oidname2freebase[dataset_name[d]], dataset_name[d]), end='')\n",
        "            else:\n",
        "                print(', {}'.format(dataset_name[d]), end='')\n",
        "        print()\n",
        "for ind in range(len(names)):\n",
        "  if not merged[ind]:\n",
        "    dataset_name = {d: '' for d in datasets}\n",
        "    d = datasets[id2source[ind]]\n",
        "    name = names[ind]\n",
        "    if name == 'background':\n",
        "      continue\n",
        "    dataset_name[d] = name\n",
        "    unified_name = dataset_name[print_order[0]]\n",
        "    for d in print_order[1:]:\n",
        "        unified_name = unified_name + '_{}'.format(dataset_name[d])\n",
        "    print(unified_name, end='')\n",
        "    cnt = cnt + 1\n",
        "    for d in print_order:\n",
        "        if d == 'oid':\n",
        "            print(', {}, {}'.format(oidname2freebase[dataset_name[d]], dataset_name[d]), end='')\n",
        "        else:\n",
        "            print(', {}'.format(dataset_name[d]), end='')\n",
        "    print()\n",
        "print()\n",
        "print('num_cats', cnt)"
      ],
      "execution_count": 15,
      "outputs": [
        {
          "output_type": "stream",
          "text": [
            "key, oid_freebase, oid_name, objects365_name, coco_name\n",
            "_bottle_bottle, , , bottle, bottle\n",
            "_cup_cup, , , cup, cup\n",
            "_dining table_dining table, , , dining table, dining table\n",
            "_cake_cake, , , cake, cake\n",
            "_wild bird_bird, , , wild bird, bird\n",
            "_knife_knife, , , knife, knife\n",
            "_remote_remote, , , remote, remote\n",
            "_microwave_microwave, , , microwave, microwave\n",
            "_frisbee_frisbee, , , frisbee, frisbee\n",
            "_toothbrush_toothbrush, , , toothbrush, toothbrush\n",
            "Footwear_sneakers_, /m/09j5n, Footwear, sneakers, \n",
            "Picture frame_picture/frame_, /m/06z37_, Picture frame, picture/frame, \n",
            "Table_desk_, /m/04bcr3, Table, desk, \n",
            "Street light_street lights_, /m/033rq4, Street light, street lights, \n",
            "Book_book_, /m/0bt_c3, Book, book, \n",
            "Helmet_helmet_, /m/0zvk5, Helmet, helmet, \n",
            "Pillow_pillow_, /m/034c16, Pillow, pillow, \n",
            "Box_storage box_, /m/025dyy, Box, storage box, \n",
            "Bowl_bowl_, /m/04kkgm, Bowl, bowl, \n",
            "Watercraft_boat_, /m/01rzcn, Watercraft, boat, \n",
            "Flag_flag_, /m/03120, Flag, flag, \n",
            "Stool_stool_, /m/0fqt361, Stool, stool, \n",
            "Doll_toy_, /m/0167gd, Doll, toy, \n",
            "Pen_pen/pencil_, /m/0k1tl, Pen, pen/pencil, \n",
            "Microphone_microphone_, /m/0hg7b, Microphone, microphone, \n",
            "Tap_faucet_, /m/02jz0l, Tap, faucet, \n",
            "Bread_bread_, /m/09728, Bread, bread, \n",
            "Sandal_high heels_, /m/03nfch, Sandal, high heels, \n",
            "Fish_fish_, /m/0ch_cf, Fish, fish, \n",
            "Camera_camera_, /m/0dv5r, Camera, camera, \n",
            "Candle_candle_, /m/0c06p, Candle, candle, \n",
            "Paddle_paddle_, /m/014y4n, Paddle, paddle, \n",
            "Drum_drum_, /m/026t6, Drum, drum, \n",
            "Guitar_guitar_, /m/0342h, Guitar, guitar, \n",
            "Kettle_tea pot_, /m/03s_tn, Kettle, tea pot, \n",
            "Ceiling fan_fan_, /m/03ldnb, Ceiling fan, fan, \n",
            "Whiteboard_blackboard/whiteboard_, /m/02d9qx, Whiteboard, blackboard/whiteboard, \n",
            "Balloon_balloon_, /m/01j51, Balloon, balloon, \n",
            "Corded phone_telephone_, /m/0h8lkj8, Corded phone, telephone, \n",
            "Orange_orange_, /m/0cyhj_, Orange, orange, \n",
            "Football_soccer_, /m/01226z, Football, soccer, \n",
            "Toilet paper_paper towel_, /m/09gtd, Toilet paper, paper towel, \n",
            "Tomato_tomato_, /m/07j87, Tomato, tomato, \n",
            "Tent_tent_, /m/01j61q, Tent, tent, \n",
            "Lantern_lantern_, /m/01jfsr, Lantern, lantern, \n",
            "Kite_kite_, /m/02zt3, Kite, kite, \n",
            "Gas stove_gas stove_, /m/02wv84t, Gas stove, gas stove, \n",
            "Spatula_shovel_, /m/02d1br, Spatula, shovel, \n",
            "Rifle_gun_, /m/06c54, Rifle, gun, \n",
            "Lemon_lemon_, /m/09k_b, Lemon, lemon, \n",
            "Squash_pumpkin_, /m/0dv77, Squash, pumpkin, \n",
            "Musical keyboard_piano_, /m/057cc, Musical keyboard, piano, \n",
            "Washing machine_washing machine_, /m/0174k2, Washing machine, washing machine, \n",
            "Cookie_cookies_, /m/021mn, Cookie, cookies, \n",
            "Cutting board_cutting/chopping board_, /m/02pdsw, Cutting board, cutting/chopping board, \n",
            "Roller skates_skating and skiing shoes_, /m/02p3w7d, Roller skates, skating and skiing shoes, \n",
            "Cricket ball_baseball_, /m/02ctlc, Cricket ball, baseball, \n",
            "Strawberry_strawberry_, /m/07fbm7, Strawberry, strawberry, \n",
            "Coffeemaker_coffee machine_, /m/07xyvk, Coffeemaker, coffee machine, \n",
            "Suitcase_suitcase_, /m/01s55n, Suitcase, suitcase, \n",
            "Grape_grapes_, /m/0388q, Grape, grapes, \n",
            "Ladder_ladder_, /m/012w5l, Ladder, ladder, \n",
            "Pear_pear_, /m/061_f, Pear, pear, \n",
            "Rugby ball_american football_, /m/0wdt60w, Rugby ball, american football, \n",
            "Printer_printer_, /m/01m4t, Printer, printer, \n",
            "Duck_goose_, /m/09ddx, Duck, goose, \n",
            "Tennis ball_tennis ball_, /m/05ctyq, Tennis ball, tennis ball, \n",
            "Chopsticks_chopsticks_, /m/01_5g, Chopsticks, chopsticks, \n",
            "Hamburger_hamburger_, /m/0cdn1, Hamburger, hamburger, \n",
            "Cucumber_cucumber_, /m/015x4r, Cucumber, cucumber, \n",
            "Mixer_blender_, /m/063rgb, Mixer, blender, \n",
            "Deer_deer_, /m/09kx5, Deer, deer, \n",
            "Egg_egg_, /m/033cnk, Egg, egg, \n",
            "Barge_ship_, /m/01btn, Barge, ship, \n",
            "Turkey_chicken_, /m/0jly1, Turkey, chicken, \n",
            "Ice cream_ice cream_, /m/0cxn2, Ice cream, ice cream, \n",
            "Adhesive tape_tape_, /m/03m3vtv, Adhesive tape, tape, \n",
            "Wheelchair_wheelchair_, /m/0qmmr, Wheelchair, wheelchair, \n",
            "Cabbage_cabbage_, /m/0fbw6, Cabbage, cabbage, \n",
            "Golf ball_golf ball_, /m/044r5d, Golf ball, golf ball, \n",
            "Peach_peach_, /m/0dj6p, Peach, peach, \n",
            "Cello_cello_, /m/01xqw, Cello, cello, \n",
            "Helicopter_helicopter_, /m/09ct_, Helicopter, helicopter, \n",
            "Penguin_penguin_, /m/05z6w, Penguin, penguin, \n",
            "Swan_swan_, /m/0dftk, Swan, swan, \n",
            "French fries_french fries_, /m/02y6n, French fries, french fries, \n",
            "Saxophone_saxophone_, /m/06ncr, Saxophone, saxophone, \n",
            "Trombone_trumpet_, /m/07c6l, Trombone, trumpet, \n",
            "Raccoon_bear_, /m/0dq75, Raccoon, bear, \n",
            "Tablet computer_tablet_, /m/0bh9flk, Tablet computer, tablet, \n",
            "Volleyball_volleyball_, /m/02rgn06, Volleyball, volleyball, \n",
            "Dumbbell_dumbbell_, /m/04h8sr, Dumbbell, dumbbell, \n",
            "Camel_camel_, /m/01x_v, Camel, camel, \n",
            "Goldfish_goldfish_, /m/03fj2, Goldfish, goldfish, \n",
            "Antelope_antelope_, /m/0czz2, Antelope, antelope, \n",
            "Shrimp_shrimp_, /m/0ll1f78, Shrimp, shrimp, \n",
            "Cart_rickshaw_, /m/018p4k, Cart, rickshaw, \n",
            "Coconut_coconut_, /m/0djtd, Coconut, coconut, \n",
            "Jellyfish_jellyfish_, /m/0d8zb, Jellyfish, jellyfish, \n",
            "Treadmill_treadmill_, /m/030610, Treadmill, treadmill, \n",
            "Butterfly_butterfly_, /m/0cyf8, Butterfly, butterfly, \n",
            "Pig_pig_, /m/068zj, Pig, pig, \n",
            "Shower_hair drier_, /m/02f9f_, Shower, hair drier, \n",
            "Asparagus_green onion_, /m/0cjs7, Asparagus, green onion, \n",
            "Dolphin_dolphin_, /m/02hj4, Dolphin, dolphin, \n",
            "Sushi_sushi_, /m/07030, Sushi, sushi, \n",
            "Burrito_spring rolls_, /m/01j3zr, Burrito, spring rolls, \n",
            "Tortoise_tortoise/turtle_, /m/011k07, Tortoise, tortoise/turtle, \n",
            "Parrot_parrot_, /m/0gv1x, Parrot, parrot, \n",
            "Flute_flute_, /m/0l14j_, Flute, flute, \n",
            "Shark_shark_, /m/0by6g, Shark, shark, \n",
            "Binoculars_binoculars_, /m/0lt4_, Binoculars, binoculars, \n",
            "Alpaca_llama_, /m/0pcr, Alpaca, llama, \n",
            "Pasta_noodles_, /m/05z55, Pasta, noodles, \n",
            "Shellfish_crab_, /m/0fbdv, Shellfish, crab, \n",
            "Lion_lion_, /m/096mb, Lion, lion, \n",
            "Polar bear_polar bear_, /m/0633h, Polar bear, polar bear, \n",
            "Sea lion_seal_, /m/0gd36, Sea lion, seal, \n",
            "Table tennis racket_table tennis paddle_, /m/05_5p_0, Table tennis racket, table tennis paddle, \n",
            "Starfish_starfish_, /m/01h8tj, Starfish, starfish, \n",
            "Falcon_eagle_, /m/0f6wt, Falcon, eagle, \n",
            "Monkey_monkey_, /m/08pbxl, Monkey, monkey, \n",
            "Rabbit_rabbit_, /m/06mf6, Rabbit, rabbit, \n",
            "Ambulance_ambulance_, /m/012n7d, Ambulance, ambulance, \n",
            "Segway_hoverboard_, /m/076bq, Segway, hoverboard, \n",
            "Truck__truck, /m/07r04, Truck, , truck\n",
            "Boat__boat, /m/019jd, Boat, , boat\n",
            "Bear__bear, /m/01dws, Bear, , bear\n",
            "Handbag__handbag, /m/080hkjn, Handbag, , handbag\n",
            "Ball__sports ball, /m/018xm, Ball, , sports ball\n",
            "Sandwich__sandwich, /m/0l515, Sandwich, , sandwich\n",
            "Bidet__toilet, /m/01vbnl, Bidet, , toilet\n",
            "Computer monitor__tv, /m/02522, Computer monitor, , tv\n",
            "Vase__vase, /m/02s195, Vase, , vase\n",
            "Person_person_person, /m/01g317, Person, person, person\n",
            "Chair_chair_chair, /m/01mzpv, Chair, chair, chair\n",
            "Car_car_car, /m/0k4j, Car, car, car\n",
            "Houseplant_potted plant_potted plant, /m/03fp41, Houseplant, potted plant, potted plant\n",
            "Bench2_bench_bench, /m/0cvnqh, Bench2, bench, bench\n",
            "Wine glass_wine glass_wine glass, /m/09tvcd, Wine glass, wine glass, wine glass\n",
            "Umbrella_umbrella_umbrella, /m/0hnnb, Umbrella, umbrella, umbrella\n",
            "Backpack_backpack_backpack, /m/01940j, Backpack, backpack, backpack\n",
            "Loveseat_couch_couch, /m/0703r8, Loveseat, couch, couch\n",
            "Tie_tie_tie, /m/01rkbr, Tie, tie, tie\n",
            "Infant bed_bed_bed, /m/061hd_, Infant bed, bed, bed\n",
            "Traffic light_traffic light_traffic light, /m/015qff, Traffic light, traffic light, traffic light\n",
            "Bicycle_bicycle_bicycle, /m/0199g, Bicycle, bicycle, bicycle\n",
            "Sink_sink_sink, /m/0130jx, Sink, sink, sink\n",
            "Horse_horse_horse, /m/03k3r, Horse, horse, horse\n",
            "Apple_apple_apple, /m/014j1m, Apple, apple, apple\n",
            "Teddy bear_teddy bear_teddy bear, /m/0kmg4, Teddy bear, teddy bear, teddy bear\n",
            "Motorcycle_motorcycle_motorcycle, /m/04_sv, Motorcycle, motorcycle, motorcycle\n",
            "Laptop_laptop_laptop, /m/01c648, Laptop, laptop, laptop\n",
            "Mobile phone_cell phone_cell phone, /m/050k8, Mobile phone, cell phone, cell phone\n",
            "Cattle_cow_cow, /m/01xq0k1, Cattle, cow, cow\n",
            "Clock_clock_clock, /m/01x3z, Clock, clock, clock\n",
            "Fork_fork_fork, /m/0dt3t, Fork, fork, fork\n",
            "Bus_bus_bus, /m/01bjv, Bus, bus, bus\n",
            "Sheep_sheep_sheep, /m/07bgp, Sheep, sheep, sheep\n",
            "Computer keyboard_keyboard_keyboard, /m/01m2v, Computer keyboard, keyboard, keyboard\n",
            "Dog_dog_dog, /m/0bt9lr, Dog, dog, dog\n",
            "Spoon_spoon_spoon, /m/0cmx8, Spoon, spoon, spoon\n",
            "Mouse2_mouse_mouse, /m/020lf, Mouse2, mouse, mouse\n",
            "Banana_banana_banana, /m/09qck, Banana, banana, banana\n",
            "Airplane_airplane_airplane, /m/0cmf2, Airplane, airplane, airplane\n",
            "Briefcase_luggage_suitcase, /m/0584n8, Briefcase, luggage, suitcase\n",
            "Ski_skis_skis, /m/071p9, Ski, skis, skis\n",
            "Baseball glove_baseball glove_baseball glove, /m/03grzl, Baseball glove, baseball glove, baseball glove\n",
            "Refrigerator_refrigerator_refrigerator, /m/040b_t, Refrigerator, refrigerator, refrigerator\n",
            "Train_train_train, /m/07jdr, Train, train, train\n",
            "Doughnut_donut_donut, /m/0jy4k, Doughnut, donut, donut\n",
            "Grapefruit_tangerine_orange, /m/0hqkz, Grapefruit, tangerine, orange\n",
            "Pizza_pizza_pizza, /m/0663v, Pizza, pizza, pizza\n",
            "Elephant_elephant_elephant, /m/0bwd_0j, Elephant, elephant, elephant\n",
            "Broccoli_broccoli_broccoli, /m/0hkxq, Broccoli, broccoli, broccoli\n",
            "Baseball bat_baseball bat_baseball bat, /m/03g8mr, Baseball bat, baseball bat, baseball bat\n",
            "Skateboard_skateboard_skateboard, /m/06_fw, Skateboard, skateboard, skateboard\n",
            "Surfboard_surfboard_surfboard, /m/019w40, Surfboard, surfboard, surfboard\n",
            "Cat_cat_cat, /m/01yrx, Cat, cat, cat\n",
            "Zebra_zebra_zebra, /m/0898b, Zebra, zebra, zebra\n",
            "Giraffe_giraffe_giraffe, /m/03bk1, Giraffe, giraffe, giraffe\n",
            "Stop sign_stop sign_stop sign, /m/02pv19, Stop sign, stop sign, stop sign\n",
            "Carrot_carrot_carrot, /m/0fj52s, Carrot, carrot, carrot\n",
            "Tennis racket_tennis racket_tennis racket, /m/0h8my_4, Tennis racket, tennis racket, tennis racket\n",
            "Scissors_scissors_scissors, /m/01lsmm, Scissors, scissors, scissors\n",
            "Snowboard_snowboard_snowboard, /m/06__v, Snowboard, snowboard, snowboard\n",
            "Fire hydrant_fire hydrant_fire hydrant, /m/01pns0, Fire hydrant, fire hydrant, fire hydrant\n",
            "Hot dog_hot dog_hot dog, /m/01b9xk, Hot dog, hot dog, hot dog\n",
            "Toaster_toaster_toaster, /m/01k6s3, Toaster, toaster, toaster\n",
            "_hat_, , , hat, \n",
            "_lamp_, , , lamp, \n",
            "_cabinet/shelf_, , , cabinet/shelf, \n",
            "_glasses_, , , glasses, \n",
            "_handbag_, , , handbag, \n",
            "_plate_, , , plate, \n",
            "_leather shoes_, , , leather shoes, \n",
            "_glove_, , , glove, \n",
            "_bracelet_, , , bracelet, \n",
            "_flower_, , , flower, \n",
            "_tv_, , , tv, \n",
            "_vase_, , , vase, \n",
            "_boots_, , , boots, \n",
            "_speaker_, , , speaker, \n",
            "_trash bin/can_, , , trash bin/can, \n",
            "_belt_, , , belt, \n",
            "_carpet_, , , carpet, \n",
            "_basket_, , , basket, \n",
            "_towel/napkin_, , , towel/napkin, \n",
            "_slippers_, , , slippers, \n",
            "_barrel/bucket_, , , barrel/bucket, \n",
            "_coffee table_, , , coffee table, \n",
            "_suv_, , , suv, \n",
            "_sandals_, , , sandals, \n",
            "_canned_, , , canned, \n",
            "_necklace_, , , necklace, \n",
            "_mirror_, , , mirror, \n",
            "_ring_, , , ring, \n",
            "_van_, , , van, \n",
            "_watch_, , , watch, \n",
            "_traffic sign_, , , traffic sign, \n",
            "_truck_, , , truck, \n",
            "_power outlet_, , , power outlet, \n",
            "_hanger_, , , hanger, \n",
            "_nightstand_, , , nightstand, \n",
            "_pot/pan_, , , pot/pan, \n",
            "_traffic cone_, , , traffic cone, \n",
            "_tripod_, , , tripod, \n",
            "_hockey_, , , hockey, \n",
            "_air conditioner_, , , air conditioner, \n",
            "_cymbal_, , , cymbal, \n",
            "_pickup truck_, , , pickup truck, \n",
            "_trolley_, , , trolley, \n",
            "_oven_, , , oven, \n",
            "_machinery vehicle_, , , machinery vehicle, \n",
            "_shampoo/shower gel_, , , shampoo/shower gel, \n",
            "_head phone_, , , head phone, \n",
            "_cleaning products_, , , cleaning products, \n",
            "_sailboat_, , , sailboat, \n",
            "_computer box_, , , computer box, \n",
            "_toiletries_, , , toiletries, \n",
            "_toilet_, , , toilet, \n",
            "_stroller_, , , stroller, \n",
            "_surveillance camera_, , , surveillance camera, \n",
            "_life saver_, , , life saver, \n",
            "_liquid soap_, , , liquid soap, \n",
            "_duck_, , , duck, \n",
            "_sports car_, , , sports car, \n",
            "_radiator_, , , radiator, \n",
            "_converter_, , , converter, \n",
            "_tissue _, , , tissue , \n",
            "_vent_, , , vent, \n",
            "_candy_, , , candy, \n",
            "_folder_, , , folder, \n",
            "_bow tie_, , , bow tie, \n",
            "_pigeon_, , , pigeon, \n",
            "_pepper_, , , pepper, \n",
            "_bathtub_, , , bathtub, \n",
            "_basketball_, , , basketball, \n",
            "_potato_, , , potato, \n",
            "_paint brush_, , , paint brush, \n",
            "_billiards_, , , billiards, \n",
            "_projector_, , , projector, \n",
            "_sausage_, , , sausage, \n",
            "_fire extinguisher_, , , fire extinguisher, \n",
            "_extension cord_, , , extension cord, \n",
            "_facial mask_, , , facial mask, \n",
            "_electronic stove and gas stove_, , , electronic stove and gas stove, \n",
            "_pie_, , , pie, \n",
            "_kettle_, , , kettle, \n",
            "_golf club_, , , golf club, \n",
            "_clutch_, , , clutch, \n",
            "_tong_, , , tong, \n",
            "_slide_, , , slide, \n",
            "_facial cleanser_, , , facial cleanser, \n",
            "_mango_, , , mango, \n",
            "_violin_, , , violin, \n",
            "_marker_, , , marker, \n",
            "_onion_, , , onion, \n",
            "_plum_, , , plum, \n",
            "_bar soap_, , , bar soap, \n",
            "_scale_, , , scale, \n",
            "_watermelon_, , , watermelon, \n",
            "_router/modem_, , , router/modem, \n",
            "_pine apple_, , , pine apple, \n",
            "_crane_, , , crane, \n",
            "_fire truck_, , , fire truck, \n",
            "_notepaper_, , , notepaper, \n",
            "_tricycle_, , , tricycle, \n",
            "_green beans_, , , green beans, \n",
            "_brush_, , , brush, \n",
            "_carriage_, , , carriage, \n",
            "_cigar_, , , cigar, \n",
            "_earphone_, , , earphone, \n",
            "_hurdle_, , , hurdle, \n",
            "_swing_, , , swing, \n",
            "_radio_, , , radio, \n",
            "_CD_, , , CD, \n",
            "_parking meter_, , , parking meter, \n",
            "_garlic_, , , garlic, \n",
            "_horn_, , , horn, \n",
            "_avocado_, , , avocado, \n",
            "_sandwich_, , , sandwich, \n",
            "_cue_, , , cue, \n",
            "_kiwi fruit_, , , kiwi fruit, \n",
            "_fishing rod_, , , fishing rod, \n",
            "_cherry_, , , cherry, \n",
            "_green vegetables_, , , green vegetables, \n",
            "_nuts_, , , nuts, \n",
            "_corn_, , , corn, \n",
            "_key_, , , key, \n",
            "_screwdriver_, , , screwdriver, \n",
            "_globe_, , , globe, \n",
            "_broom_, , , broom, \n",
            "_pliers_, , , pliers, \n",
            "_hammer_, , , hammer, \n",
            "_eggplant_, , , eggplant, \n",
            "_trophy_, , , trophy, \n",
            "_dates_, , , dates, \n",
            "_board eraser_, , , board eraser, \n",
            "_rice_, , , rice, \n",
            "_tape measure/ruler_, , , tape measure/ruler, \n",
            "_hamimelon_, , , hamimelon, \n",
            "_stapler_, , , stapler, \n",
            "_lettuce_, , , lettuce, \n",
            "_meat balls_, , , meat balls, \n",
            "_medal_, , , medal, \n",
            "_toothpaste_, , , toothpaste, \n",
            "_trombone_, , , trombone, \n",
            "_pomegranate_, , , pomegranate, \n",
            "_mushroom_, , , mushroom, \n",
            "_calculator_, , , calculator, \n",
            "_egg tart_, , , egg tart, \n",
            "_cheese_, , , cheese, \n",
            "_pomelo_, , , pomelo, \n",
            "_race car_, , , race car, \n",
            "_rice cooker_, , , rice cooker, \n",
            "_tuba_, , , tuba, \n",
            "_crosswalk sign_, , , crosswalk sign, \n",
            "_papaya_, , , papaya, \n",
            "_chips_, , , chips, \n",
            "_urinal_, , , urinal, \n",
            "_donkey_, , , donkey, \n",
            "_electric drill_, , , electric drill, \n",
            "_measuring cup_, , , measuring cup, \n",
            "_steak_, , , steak, \n",
            "_poker card_, , , poker card, \n",
            "_radish_, , , radish, \n",
            "_yak_, , , yak, \n",
            "_mop_, , , mop, \n",
            "_microscope_, , , microscope, \n",
            "_barbell_, , , barbell, \n",
            "_bread/bun_, , , bread/bun, \n",
            "_baozi_, , , baozi, \n",
            "_red cabbage_, , , red cabbage, \n",
            "_lighter_, , , lighter, \n",
            "_mangosteen_, , , mangosteen, \n",
            "_comb_, , , comb, \n",
            "_eraser_, , , eraser, \n",
            "_pitaya_, , , pitaya, \n",
            "_scallop_, , , scallop, \n",
            "_pencil case_, , , pencil case, \n",
            "_saw_, , , saw, \n",
            "_okra_, , , okra, \n",
            "_durian_, , , durian, \n",
            "_game board_, , , game board, \n",
            "_french horn_, , , french horn, \n",
            "_asparagus_, , , asparagus, \n",
            "_pasta_, , , pasta, \n",
            "_target_, , , target, \n",
            "_hotair balloon_, , , hotair balloon, \n",
            "_chainsaw_, , , chainsaw, \n",
            "_lobster_, , , lobster, \n",
            "_iron_, , , iron, \n",
            "_flashlight_, , , flashlight, \n",
            "__parking meter, , , , parking meter\n",
            "__kite, , , , kite\n",
            "__bowl, , , , bowl\n",
            "__oven, , , , oven\n",
            "__book, , , , book\n",
            "__hair drier, , , , hair drier\n",
            "Rose__, /m/06m11, Rose, , \n",
            "Flashlight__, /m/01kb5b, Flashlight, , \n",
            "Sea turtle__, /m/0120dh, Sea turtle, , \n",
            "Animal__, /m/0jbk, Animal, , \n",
            "Glove__, /m/0174n1, Glove, , \n",
            "Crocodile__, /m/09f_2, Crocodile, , \n",
            "House__, /m/03jm5, House, , \n",
            "Guacamole__, /m/02g30s, Guacamole, , \n",
            "Vehicle registration plate__, /m/01jfm_, Vehicle registration plate, , \n",
            "Bench1__, /m/076lb9, Bench1, , \n",
            "Ladybug__, /m/0gj37, Ladybug, , \n",
            "Human nose__, /m/0k0pj, Human nose, , \n",
            "Watermelon__, /m/0kpqd, Watermelon, , \n",
            "Taco__, /m/07crc, Taco, , \n",
            "Cake__, /m/0fszt, Cake, , \n",
            "Cannon__, /m/020kz, Cannon, , \n",
            "Tree__, /m/07j7r, Tree, , \n",
            "Bed__, /m/03ssj5, Bed, , \n",
            "Hamster__, /m/03qrc, Hamster, , \n",
            "Hat__, /m/02dl1y, Hat, , \n",
            "Sombrero__, /m/02jfl0, Sombrero, , \n",
            "Tiara__, /m/01krhy, Tiara, , \n",
            "Dragonfly__, /m/0ft9s, Dragonfly, , \n",
            "Moths and butterflies__, /m/0d_2m, Moths and butterflies, , \n",
            "Vegetable__, /m/0f4s2w, Vegetable, , \n",
            "Torch__, /m/07dd4, Torch, , \n",
            "Building__, /m/0cgh4, Building, , \n",
            "Power plugs and sockets__, /m/03bbps, Power plugs and sockets, , \n",
            "Blender__, /m/02pjr4, Blender, , \n",
            "Billiard table__, /m/04p0qw, Billiard table, , \n",
            "Bronze sculpture__, /m/01yx86, Bronze sculpture, , \n",
            "Turtle__, /m/09dzg, Turtle, , \n",
            "Tiger__, /m/07dm6, Tiger, , \n",
            "Mirror__, /m/054_l, Mirror, , \n",
            "Zucchini__, /m/027pcv, Zucchini, , \n",
            "Dress__, /m/01d40f, Dress, , \n",
            "Reptile__, /m/06bt6, Reptile, , \n",
            "Golf cart__, /m/0323sq, Golf cart, , \n",
            "Tart__, /m/02zvsm, Tart, , \n",
            "Fedora__, /m/02fq_6, Fedora, , \n",
            "Carnivore__, /m/01lrl, Carnivore, , \n",
            "Lighthouse__, /m/04h7h, Lighthouse, , \n",
            "Food processor__, /m/03y6mg, Food processor, , \n",
            "Bookcase__, /m/03__z0, Bookcase, , \n",
            "Necklace__, /m/01llwg, Necklace, , \n",
            "Flower__, /m/0c9ph5, Flower, , \n",
            "Radish__, /m/015x5n, Radish, , \n",
            "Marine mammal__, /m/0gd2v, Marine mammal, , \n",
            "Frying pan__, /m/04v6l4, Frying pan, , \n",
            "Knife__, /m/04ctx, Knife, , \n",
            "Christmas tree__, /m/025nd, Christmas tree, , \n",
            "Eagle__, /m/09csl, Eagle, , \n",
            "Limousine__, /m/01lcw4, Limousine, , \n",
            "Kitchen & dining room table__, /m/0h8n5zk, Kitchen & dining room table, , \n",
            "Tower__, /m/01fdzj, Tower, , \n",
            "Willow__, /m/0mw_6, Willow, , \n",
            "Human head__, /m/04hgtk, Human head, , \n",
            "Dessert__, /m/0270h, Dessert, , \n",
            "Bee__, /m/01h3n, Bee, , \n",
            "Wood-burning stove__, /m/04169hn, Wood-burning stove, , \n",
            "Flowerpot__, /m/0fm3zh, Flowerpot, , \n",
            "Beaker__, /m/0d20w4, Beaker, , \n",
            "Oyster__, /m/0_cp5, Oyster, , \n",
            "Woodpecker__, /m/01dy8n, Woodpecker, , \n",
            "Harp__, /m/03m5k, Harp, , \n",
            "Bathtub__, /m/03dnzn, Bathtub, , \n",
            "Wall clock__, /m/0h8mzrc, Wall clock, , \n",
            "Sports uniform__, /m/0h8mhzd, Sports uniform, , \n",
            "Rhinoceros__, /m/03d443, Rhinoceros, , \n",
            "Beehive__, /m/01gllr, Beehive, , \n",
            "Cupboard__, /m/0642b4, Cupboard, , \n",
            "Chicken__, /m/09b5t, Chicken, , \n",
            "Man__, /m/04yx4, Man, , \n",
            "Blue jay__, /m/01f8m5, Blue jay, , \n",
            "Fireplace__, /m/03tw93, Fireplace, , \n",
            "Missile__, /m/04ylt, Missile, , \n",
            "Squirrel__, /m/071qp, Squirrel, , \n",
            "Coat__, /m/01xygc, Coat, , \n",
            "Punching bag__, /m/0420v5, Punching bag, , \n",
            "Billboard__, /m/01knjb, Billboard, , \n",
            "Door handle__, /m/03c7gz, Door handle, , \n",
            "Mechanical fan__, /m/02x984l, Mechanical fan, , \n",
            "Ring binder__, /m/04zwwv, Ring binder, , \n",
            "Sock__, /m/01nq26, Sock, , \n",
            "Weapon__, /m/083kb, Weapon, , \n",
            "Shotgun__, /m/06nrc, Shotgun, , \n",
            "Glasses__, /m/0jyfg, Glasses, , \n",
            "Seahorse__, /m/0nybt, Seahorse, , \n",
            "Belt__, /m/0176mf, Belt, , \n",
            "Window__, /m/0d4v4, Window, , \n",
            "Tire__, /m/0h9mv, Tire, , \n",
            "Vehicle__, /m/07yv9, Vehicle, , \n",
            "Canoe__, /m/0ph39, Canoe, , \n",
            "Shelf__, /m/0gjbg72, Shelf, , \n",
            "Human leg__, /m/035r7c, Human leg, , \n",
            "Slow cooker__, /m/02tsc9, Slow cooker, , \n",
            "Croissant__, /m/015wgc, Croissant, , \n",
            "Pancake__, /m/01dwwc, Pancake, , \n",
            "Coin__, /m/0242l, Coin, , \n",
            "Stretcher__, /m/02lbcq, Stretcher, , \n",
            "Woman__, /m/03bt1vf, Woman, , \n",
            "Stairs__, /m/01lynh, Stairs, , \n",
            "Harpsichord__, /m/03q5t, Harpsichord, , \n",
            "Human mouth__, /m/0283dt1, Human mouth, , \n",
            "Juice__, /m/01z1kdw, Juice, , \n",
            "Skull__, /m/016m2d, Skull, , \n",
            "Door__, /m/02dgv, Door, , \n",
            "Violin__, /m/07y_7, Violin, , \n",
            "Digital clock__, /m/06_72j, Digital clock, , \n",
            "Sunflower__, /m/0ftb8, Sunflower, , \n",
            "Leopard__, /m/0c29q, Leopard, , \n",
            "Bell pepper__, /m/0jg57, Bell pepper, , \n",
            "Harbor seal__, /m/02l8p9, Harbor seal, , \n",
            "Snake__, /m/078jl, Snake, , \n",
            "Sewing machine__, /m/0llzx, Sewing machine, , \n",
            "Goose__, /m/0dbvp, Goose, , \n",
            "Seat belt__, /m/0dkzw, Seat belt, , \n",
            "Coffee cup__, /m/02p5f1q, Coffee cup, , \n",
            "Microwave oven__, /m/0fx9l, Microwave oven, , \n",
            "Countertop__, /m/0b3fp9, Countertop, , \n",
            "Serving tray__, /m/0h8n27j, Serving tray, , \n",
            "Dog bed__, /m/0h8n6f9, Dog bed, , \n",
            "Beer__, /m/01599, Beer, , \n",
            "Sunglasses__, /m/017ftj, Sunglasses, , \n",
            "Waffle__, /m/01dwsz, Waffle, , \n",
            "Palm tree__, /m/0cdl1, Palm tree, , \n",
            "Trumpet__, /m/07gql, Trumpet, , \n",
            "Ruler__, /m/0hdln, Ruler, , \n",
            "Office building__, /m/021sj1, Office building, , \n",
            "Pomegranate__, /m/0jwn_, Pomegranate, , \n",
            "Skirt__, /m/02wv6h6, Skirt, , \n",
            "Raven__, /m/06j2d, Raven, , \n",
            "Goat__, /m/03fwl, Goat, , \n",
            "Kitchen knife__, /m/058qzx, Kitchen knife, , \n",
            "Salt and pepper shakers__, /m/02x8cch, Salt and pepper shakers, , \n",
            "Lynx__, /m/04g2r, Lynx, , \n",
            "Boot__, /m/01b638, Boot, , \n",
            "Platter__, /m/099ssp, Platter, , \n",
            "Swimwear__, /m/01gkx_, Swimwear, , \n",
            "Swimming pool__, /m/0b_rs, Swimming pool, , \n",
            "Drinking straw__, /m/03v5tg, Drinking straw, , \n",
            "Wrench__, /m/01j5ks, Wrench, , \n",
            "Ant__, /m/0_k2, Ant, , \n",
            "Human ear__, /m/039xj_, Human ear, , \n",
            "Headphones__, /m/01b7fy, Headphones, , \n",
            "Fountain__, /m/0220r2, Fountain, , \n",
            "Bird__, /m/015p6, Bird, , \n",
            "Jeans__, /m/0fly7, Jeans, , \n",
            "Television__, /m/07c52, Television, , \n",
            "Crab__, /m/0n28_, Crab, , \n",
            "Home appliance__, /m/019dx1, Home appliance, , \n",
            "Snowplow__, /m/04vv5k, Snowplow, , \n",
            "Beetle__, /m/020jm, Beetle, , \n",
            "Artichoke__, /m/047v4b, Artichoke, , \n",
            "Jet ski__, /m/01xs3r, Jet ski, , \n",
            "Stationary bicycle__, /m/03kt2w, Stationary bicycle, , \n",
            "Human hair__, /m/03q69, Human hair, , \n",
            "Brown bear__, /m/01dxs, Brown bear, , \n",
            "Lobster__, /m/0cjq5, Lobster, , \n",
            "Drink__, /m/0271t, Drink, , \n",
            "Saucer__, /m/03q5c7, Saucer, , \n",
            "Insect__, /m/03vt0, Insect, , \n",
            "Castle__, /m/0d5gx, Castle, , \n",
            "Jaguar__, /m/0449p, Jaguar, , \n",
            "Musical instrument__, /m/04szw, Musical instrument, , \n",
            "Taxi__, /m/0pg52, Taxi, , \n",
            "Pitcher__, /m/054fyh, Pitcher, , \n",
            "Invertebrate__, /m/03xxp, Invertebrate, , \n",
            "High heels__, /m/06k2mb, High heels, , \n",
            "Bust__, /m/04yqq2, Bust, , \n",
            "Scarf__, /m/02h19r, Scarf, , \n",
            "Barrel__, /m/02zn6n, Barrel, , \n",
            "Pumpkin__, /m/05zsy, Pumpkin, , \n",
            "Frog__, /m/09ld4, Frog, , \n",
            "Human face__, /m/0dzct, Human face, , \n",
            "Van__, /m/0h2r6, Van, , \n",
            "Swim cap__, /m/04tn4x, Swim cap, , \n",
            "Ostrich__, /m/05n4y, Ostrich, , \n",
            "Handgun__, /m/0gxl3, Handgun, , \n",
            "Lizard__, /m/04m9y, Lizard, , \n",
            "Snowmobile__, /m/01x3jk, Snowmobile, , \n",
            "Light bulb__, /m/0h8l4fh, Light bulb, , \n",
            "Window blind__, /m/031b6r, Window blind, , \n",
            "Muffin__, /m/01tcjp, Muffin, , \n",
            "Pretzel__, /m/01f91_, Pretzel, , \n",
            "Horn__, /m/0319l, Horn, , \n",
            "Furniture__, /m/0c_jw, Furniture, , \n",
            "Fox__, /m/0306r, Fox, , \n",
            "Convenience store__, /m/0crjs, Convenience store, , \n",
            "Fruit__, /m/02xwb, Fruit, , \n",
            "Earrings__, /m/01r546, Earrings, , \n",
            "Curtain__, /m/03rszm, Curtain, , \n",
            "Sofa bed__, /m/03m3pdh, Sofa bed, , \n",
            "Luggage and bags__, /m/0hf58v5, Luggage and bags, , \n",
            "Desk__, /m/01y9k5, Desk, , \n",
            "Crutch__, /m/05441v, Crutch, , \n",
            "Bicycle helmet__, /m/03p3bw, Bicycle helmet, , \n",
            "Tick__, /m/0175cv, Tick, , \n",
            "Canary__, /m/0ccs93, Canary, , \n",
            "Watch__, /m/0gjkl, Watch, , \n",
            "Lily__, /m/0jqgx, Lily, , \n",
            "Kitchen appliance__, /m/0h99cwc, Kitchen appliance, , \n",
            "Filing cabinet__, /m/047j0r, Filing cabinet, , \n",
            "Aircraft__, /m/0k5j, Aircraft, , \n",
            "Cake stand__, /m/0h8n6ft, Cake stand, , \n",
            "Candy__, /m/0gm28, Candy, , \n",
            "Mouse1__, /m/04rmv, Mouse1, , \n",
            "Wine__, /m/081qc, Wine, , \n",
            "Drawer__, /m/0fqfqc, Drawer, , \n",
            "Picnic basket__, /m/07kng9, Picnic basket, , \n",
            "Dice__, /m/029b3, Dice, , \n",
            "Football helmet__, /m/07qxg_, Football helmet, , \n",
            "Shorts__, /m/01bfm9, Shorts, , \n",
            "Gondola__, /m/02068x, Gondola, , \n",
            "Honeycomb__, /m/0fz0h, Honeycomb, , \n",
            "Chest of drawers__, /m/05kyg_, Chest of drawers, , \n",
            "Land vehicle__, /m/01prls, Land vehicle, , \n",
            "Bat__, /m/01h44, Bat, , \n",
            "Dagger__, /m/02gzp, Dagger, , \n",
            "Tableware__, /m/04brg2, Tableware, , \n",
            "Human foot__, /m/031n1, Human foot, , \n",
            "Mug__, /m/02jvh9, Mug, , \n",
            "Alarm clock__, /m/046dlr, Alarm clock, , \n",
            "Pressure cooker__, /m/0h8ntjv, Pressure cooker, , \n",
            "Human hand__, /m/0k65p, Human hand, , \n",
            "Sword__, /m/06y5r, Sword, , \n",
            "Miniskirt__, /m/01cmb2, Miniskirt, , \n",
            "Traffic sign__, /m/01mqdt, Traffic sign, , \n",
            "Girl__, /m/05r655, Girl, , \n",
            "Dinosaur__, /m/029tx, Dinosaur, , \n",
            "Porch__, /m/04m6gz, Porch, , \n",
            "Human beard__, /m/015h_t, Human beard, , \n",
            "Submarine sandwich__, /m/06pcq, Submarine sandwich, , \n",
            "Screwdriver__, /m/01bms0, Screwdriver, , \n",
            "Seafood__, /m/06nwz, Seafood, , \n",
            "Racket__, /m/0dv9c, Racket, , \n",
            "Wheel__, /m/083wq, Wheel, , \n",
            "Toy__, /m/0138tl, Toy, , \n",
            "Tea__, /m/07clx, Tea, , \n",
            "Waste container__, /m/0bjyj5, Waste container, , \n",
            "Mule__, /m/0dbzx, Mule, , \n",
            "Pineapple__, /m/0fp6w, Pineapple, , \n",
            "Coffee table__, /m/078n6m, Coffee table, , \n",
            "Snowman__, /m/0152hh, Snowman, , \n",
            "Lavender__, /m/04gth, Lavender, , \n",
            "Maple__, /m/0cffdh, Maple, , \n",
            "Cowboy hat__, /m/025rp__, Cowboy hat, , \n",
            "Goggles__, /m/02_n6y, Goggles, , \n",
            "Caterpillar__, /m/0cydv, Caterpillar, , \n",
            "Poster__, /m/01n5jq, Poster, , \n",
            "Rocket__, /m/09rvcxw, Rocket, , \n",
            "Organ__, /m/013y1f, Organ, , \n",
            "Cocktail__, /m/024g6, Cocktail, , \n",
            "Plastic bag__, /m/05gqfk, Plastic bag, , \n",
            "Mushroom__, /m/052sf, Mushroom, , \n",
            "Light switch__, /m/03jbxj, Light switch, , \n",
            "Parachute__, /m/0cyfs, Parachute, , \n",
            "Winter melon__, /m/02cvgx, Winter melon, , \n",
            "Plumbing fixture__, /m/02pkr5, Plumbing fixture, , \n",
            "Scoreboard__, /m/057p5t, Scoreboard, , \n",
            "Envelope__, /m/0frqm, Envelope, , \n",
            "Bow and arrow__, /m/01g3x7, Bow and arrow, , \n",
            "Telephone__, /m/07cx4, Telephone, , \n",
            "Jacket__, /m/032b3c, Jacket, , \n",
            "Boy__, /m/01bl7v, Boy, , \n",
            "Otter__, /m/0cn6p, Otter, , \n",
            "Office supplies__, /m/02rdsp, Office supplies, , \n",
            "Couch__, /m/02crq1, Couch, , \n",
            "Bull__, /m/0cnyhnx, Bull, , \n",
            "Whale__, /m/084zz, Whale, , \n",
            "Shirt__, /m/01n4qj, Shirt, , \n",
            "Tank__, /m/07cmd, Tank, , \n",
            "Accordion__, /m/0mkg, Accordion, , \n",
            "Owl__, /m/09d5_, Owl, , \n",
            "Porcupine__, /m/0c568, Porcupine, , \n",
            "Sun hat__, /m/02wbtzl, Sun hat, , \n",
            "Nail__, /m/05bm6, Nail, , \n",
            "Lamp__, /m/0dtln, Lamp, , \n",
            "Crown__, /m/0nl46, Crown, , \n",
            "Piano__, /m/05r5c, Piano, , \n",
            "Sculpture__, /m/06msq, Sculpture, , \n",
            "Cheetah__, /m/0cd4d, Cheetah, , \n",
            "Oboe__, /m/05kms, Oboe, , \n",
            "Tin can__, /m/02jnhm, Tin can, , \n",
            "Mango__, /m/0fldg, Mango, , \n",
            "Tripod__, /m/073bxn, Tripod, , \n",
            "Oven__, /m/029bxz, Oven, , \n",
            "Coffee__, /m/02vqfm, Coffee, , \n",
            "Common fig__, /m/043nyj, Common fig, , \n",
            "Salad__, /m/0grw1, Salad, , \n",
            "Marine invertebrates__, /m/03hl4l9, Marine invertebrates, , \n",
            "Kangaroo__, /m/04c0y, Kangaroo, , \n",
            "Human arm__, /m/0dzf4, Human arm, , \n",
            "Measuring cup__, /m/07v9_z, Measuring cup, , \n",
            "Snail__, /m/0f9_l, Snail, , \n",
            "Suit__, /m/01xyhv, Suit, , \n",
            "Teapot__, /m/01fh4r, Teapot, , \n",
            "Bottle__, /m/04dr76w, Bottle, , \n",
            "Trousers__, /m/07mhn, Trousers, , \n",
            "Popcorn__, /m/01hrv5, Popcorn, , \n",
            "Centipede__, /m/019h78, Centipede, , \n",
            "Spider__, /m/09kmb, Spider, , \n",
            "Sparrow__, /m/0h23m, Sparrow, , \n",
            "Plate__, /m/050gv4, Plate, , \n",
            "Bagel__, /m/01fb_0, Bagel, , \n",
            "Personal care__, /m/02w3_ws, Personal care, , \n",
            "Brassiere__, /m/01gmv2, Brassiere, , \n",
            "Bathroom cabinet__, /m/04y4h8h, Bathroom cabinet, , \n",
            "studio couch__, /m/026qbn5, studio couch, , \n",
            "Cabinetry__, /m/01s105, Cabinetry, , \n",
            "Towel__, /m/0162_1, Towel, , \n",
            "Nightstand__, /m/02z51p, Nightstand, , \n",
            "Jug__, /m/08hvt4, Jug, , \n",
            "Wok__, /m/084rd, Wok, , \n",
            "Human eye__, /m/014sv8, Human eye, , \n",
            "Skyscraper__, /m/079cl, Skyscraper, , \n",
            "Potato__, /m/05vtc, Potato, , \n",
            "Paper towel__, /m/02w3r3, Paper towel, , \n",
            "Lifejacket__, /m/054xkw, Lifejacket, , \n",
            "Bicycle wheel__, /m/01bqk0, Bicycle wheel, , \n",
            "Toilet__, /m/09g1w, Toilet, , \n",
            "\n",
            "num_cats 701\n"
          ],
          "name": "stdout"
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "w2jVHv9rAfNn"
      },
      "source": [
        ""
      ],
      "execution_count": null,
      "outputs": []
    }
  ]
}